feat: support for access control in multi-user authentication mode #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在多用户验证模式下,
STCP
/XTCP
/SUDP
类型的代理可以限制用户的访问权限(只允许特定用户访问指定代理)。现有的图形界面并没有提供相应的输入来配置访问控制设置。
为了实现权限控制,访问者需要设置
serverUser
字段,被访问者需要设置allowUsers
字段。更新后的样式布局如下:
[visitor]
[visited-1]
[visited-2]
生成的toml文件样例: