Open
Conversation
Contributor
|
应当保持命名风格一致,建议改成 ruleSet |
Member
|
虽然会让路由规则更显得复杂化,但表示支持的,加入ruleset可以方便写各种组合规则。 |
Contributor
|
Xray-core/app/router/condition_test.go Line 324 in 16544c1 Xray-core/app/router/config.go Line 66 in 95e025c 测试需要修下 |
AkinoKaede
approved these changes
Mar 6, 2021
Member
|
咋 Xray 这边也有个 ruleSet,这东西最早是 Clash 搞的? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
添加特性:
RuleSet定义一个
RuleSet:{ "tag": "rs", "rules" : [ { "type": "field", "ip": [ "8.8.8.8" ] }, { "type": "field", "domain": [ "domain:google.com" ] } ] }在
RuleObject或RuleSet使用RuleSet:{ "type": "field", "ruleSet": "rs", "outboundTag": "outbound" }