From fc693bc25791eecd4afb0eb6afce43a1821c9d9c Mon Sep 17 00:00:00 2001 From: Skyxim Date: Sun, 23 Oct 2022 16:54:50 +0800 Subject: [PATCH] chore: SUB-RULE --- docs/config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config.yaml b/docs/config.yaml index f0fa237c..61fb319a 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -541,8 +541,8 @@ rules: - DOMAIN-KEYWORD,google,ss1 - IP-CIDR,1.1.1.1/32,ss1 - IP-CIDR6,2409::/64,DIRECT - - SUB-RULE,((OR,((NETWORK,TCP),(NETWORK,UDP)))),sub-rule-name1 # 当满足条件是 TCP 或 UDP 流量时,使用名为 sub-rule-name1 当规则集 - - SUB-RULE,((AND,((NETWORK,UDP)))),sub-rule-name2 + - SUB-RULE,(OR,((NETWORK,TCP),(NETWORK,UDP))),sub-rule-name1 # 当满足条件是 TCP 或 UDP 流量时,使用名为 sub-rule-name1 当规则集 + - SUB-RULE,(AND,((NETWORK,UDP))),sub-rule-name2 # 定义多个子规则集,规则将以分叉匹配,使用 SUB-RULE 使用 # google.com(not match)--> baidu.com(match) # / |