Skip to content
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

Open
3 tasks done
steveqx opened this issue Sep 16, 2024 · 0 comments
Open
3 tasks done

[Feature] 支持 Clash.Meta rule-anchor 配置方式 #769

steveqx opened this issue Sep 16, 2024 · 0 comments

Comments

@steveqx
Copy link

steveqx commented Sep 16, 2024

Verify steps

  • 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
  • 我已经仔细看过 常见问题 并无法自行解决问题

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'

@steveqx steveqx changed the title [Feature] [Feature] 支持 Clash.Meta rule-anchor 配置方式 Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant