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是不是也考虑一下 |
|
* commit 'f6a7e939231e5ec6b167628bf730dc70a3c36707': (90 commits) VMess inbound: Optimize replay filter (XTLS#5562) Bump github.com/pires/go-proxyproto from 0.9.1 to 0.9.2 (XTLS#5614) TUN inbound: Add iOS support (XTLS#5612) Geodat: Reduce peak memory usage (XTLS#5581) Bump github.com/pires/go-proxyproto from 0.9.0 to 0.9.1 (XTLS#5608) Hysteria transport: Support range & random for `interval` in `udphop` as well (XTLS#5603) TUN inbound: Enhance Darwin interface support (XTLS#5598) XUDP client: Initialize Global ID's BaseKey correctly (XTLS#5602) TUN inbound: Disable RACK/TLP recovery to fix connection stalls (XTLS#5600) v26.1.23 common/errors/feature_errors.go: Add PrintNonRemovalDeprecatedFeatureWarning() (XTLS#5567) API: Add ListRule() for routing (XTLS#5569) Log config: More flexible `maskAddress` (XTLS#5570) Bump github.com/miekg/dns from 1.1.70 to 1.1.72 (XTLS#5590) Bump github.com/cloudflare/circl from 1.6.2 to 1.6.3 (XTLS#5589) Hysteria transport: Fix speedtest issue (XTLS#5587) README.md: Add fancyss to Asuswrt-Merlin Clients Router: Fix panic in ProcessNameMatcher when source IPs are empty (XTLS#5574) README.md: Update links for PassWall & PassWall 2 (XTLS#5572) Tests: Reduce RAM usage (XTLS#5577) ... # Conflicts: # core/core.go
|
@Fangliding 这个东西的场景是啥? 仅命令行控制 |
|
GRPC API啊 遵循proto文件就可以调用 核心给个命令只是快速调用 |
|
我看 addrule 是前年加的 我想把两个 matcher 全部移到 common/geomatcher 里 不想费劲再去兼容原来的,以前这个也不科学 |
|
这样子重构后,还可以很方便地搞 geodat 热重载了 |
|
我也觉得现在这样有点反人类 geocode进core是个好主意 就是会显得geodat格式有点小丑 如果能避免 #5505 这样的改动就太好了(aiya 已经合了 不会又revert吧) |
|
我直接 revert 了才开始改的 大概是这样:
|
|
没什么问题的话暂时就这么干了,我感觉很科学 |
|
|
|
|
|
非常赞同 这个grpc说实在一点都不好用 想获取多点数据就要动一堆东西
…---Original---
From: ***@***.***>
Date: Tue, Feb 3, 2026 03:50 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [XTLS/Xray-core] API: Add ListRule() for routing (PR #5569)
RPRX left a comment (XTLS/Xray-core#5569)
我想把配置文件 proto 扔了,想把 gRPC 扔了改成 RESTful
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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