-
Notifications
You must be signed in to change notification settings - Fork 4.9k
API: Add ListRule() for routing #5569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
新增api需要像 #3189 一样提供 xray api 命令作为调用示范以及便捷使用 |
|
It has been added and tested successfully |
|
除了list rules,能modify rules吗 |
编辑规则 可以通过AddRule方法 ShouldAppend 为 false 即可 |
已经实现 提交上去了 |
|
这个好 ,经常需要调整rules但是不想重启xray |
|
为啥新增的 command 不像 adrules 和 rmrules 一样叫 lsrules 而是 lsr?应当先保持一致 |
|
这部分是参照 list outbounds(lso) list inbounds (lsi) 所以是 lsr
…---Original---
From: ***@***.***>
Date: Fri, Jan 23, 2026 21:14 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [XTLS/Xray-core] Add grpc api ListRule() support (PR #5569)
RPRX left a comment (XTLS/Xray-core#5569)
为啥新增的 command 不像 adrules 和 rmrules 一样叫 lsrules 而是 lsr?应当先保持一致
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
为啥不参照另外两个,改一下,半个小时后要发版了 |
已修正 |
|
List Rules 需要参考另外两个改为 List routing rules 还有这个不止能列出带 ruleTag 的吧 |
ListRule最终会走到下面的方法 如果需要获取其他的信息需要改动的地方比较多 |
|
|
|
Long 也需要改为 |
|
|
哦不好意思我刚没太理解你说的long是什么意思哈哈 |
稍等 先别合并 我推错了个文件上去 |
|
|
可以了 |
|
默认只列了outboundTag, balancerTag是不是也考虑一下 |
|
The original router interface does not support obtaining the rule list. A new ListRule has been added, which can obtain the ruleTag List. The returned information is as follows