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] rule-providers 文件请支持“[AND & OR & NOT]”语法 #1708

Closed
3 tasks done
weineo opened this issue Dec 10, 2024 · 0 comments
Closed
3 tasks done

[Feature] rule-providers 文件请支持“[AND & OR & NOT]”语法 #1708

weineo opened this issue Dec 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@weineo
Copy link

weineo commented Dec 10, 2024

验证步骤

  • 我已经阅读了 文档,确认了该功能没有实现
  • 我已在 Issue Tracker 中寻找过我要提出的功能请求,并且没有找到
  • 我是中文用户,而非其他语言用户

描述

rule-providers 文件请支持“[AND & OR & NOT]”语法。
经过多次尝试,带有“[AND & OR & NOT]”内容的规则放在rule-providers文件内,使用RULE-SET引入时,不生效,但是直接写在配置文件“rules”模块内可以生效。
具体规则:“

  • AND,((DOMAIN-REGEX,^v\d+.[a-zA-Z0-9]+.com$),(IP-ASN,13335)),VideoCDN
  • AND,((DOMAIN-REGEX,^v\d+.[a-zA-Z0-9]+.com$),(GEOIP,US)),VideoCDN
  • AND,((DOMAIN-REGEX,^v\d+.[a-zA-Z0-9]+.com$),(SRC-GEOIP,US)),VideoCDN

  • 在rule-providers文件内写法:“
  • AND,((DOMAIN-REGEX,^v\d+.[a-zA-Z0-9]+.com),(IP-ASN,13335))
  • AND,((DOMAIN-REGEX,^v\d+.[a-zA-Z0-9]+.com),(GEOIP,US))
  • AND,((DOMAIN-REGEX,^v\d+.[a-zA-Z0-9]+.com),(SRC-GEOIP,US))
@weineo weineo added the enhancement New feature or request label Dec 10, 2024
@weineo weineo closed this as completed Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant