Commands: Add adu/rmu inbound user management to API #4943
Merged
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.
这个 PR 添加 adu 和 rmu 两个管理 inbound 用户的命令行 API。支持 vless, vmess, trojan, ss 四种协议。
主要给个人使用,机场有自己的面板应该不需要这个功能。
详细用法示例:
config.json
user2.json
首次添加用户2
$ ./xray api adu -s 127.0.0.1:2025 user2.json processing inbound: serv add user: user2@xray.com result: ok Added 1 user(s) in total.
再次添加用户2
查询当前用户
删除用户2
再次查询