-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Feature] 支持 Clash.Meta rule-anchor 配置方式 #769
Comments
下个版本适配meta内核mix模式时会考虑添加 |
这个问题也困扰我很久了,是否可以考虑用 毕竟anchor本身没有约束,例如我所使用的 这种情况下加入 |
大部分路由设备都没有预装jq或者yq,我拿什么预置这种命令 |
我的意思是需要anchor的一般都是自己配置config的高级用户,这个时候让用户自己部署yq就行了 |
@AquanJSW 所以为什么不加到user.yaml里? |
@juewuy 也是个方法,我只是觉得mihomo本身可以解析的配置,用ShellCrash却不能直接用,才有的这个workaround 确实,正如你所言,引入了额外的依赖不太优雅 |
Verify steps
Description
Clash.meta 的 rule-anchor 可以方便简化重复性的配置
Config Example
rule-anchor:
ip: &ip {type: http, interval: 86400, behavior: ipcidr, format: mrs}
domain: &domain {type: http, interval: 86400, behavior: domain, format: mrs}
rule-providers:
private_domain:
<<: *domain
url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs"
cn_domain:
<<: *domain
url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/cn.mrs"
biliintl_domain:
希望添加 rule-anchor
scripts/start.sh Line 441
yaml_char='proxies proxy-groups proxy-providers rules rule-providers'
改为
yaml_char='proxies proxy-groups proxy-providers rules rule-anchor rule-providers'
The text was updated successfully, but these errors were encountered: