From 1389e2fd8e29705a1c0430422cbfea2b2d618ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 22 Aug 2026 14:19:37 +0800 Subject: [PATCH] documentation: Fix matching logic note for DNS rules The address filter fields ip_cidr, ip_is_private and ip_accept_any share the destination address group with the domain fields, matching with OR semantics like in route rules. --- docs/configuration/dns/rule.md | 4 ++-- docs/configuration/dns/rule.zh.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration/dns/rule.md b/docs/configuration/dns/rule.md index 43486748..c4b4a5b1 100644 --- a/docs/configuration/dns/rule.md +++ b/docs/configuration/dns/rule.md @@ -203,9 +203,9 @@ icon: material/alert-decagram !!! note "" The default rule uses the following matching logic: - (`domain` || `domain_suffix` || `domain_keyword` || `domain_regex` || `geosite`) && + (`domain` || `domain_suffix` || `domain_keyword` || `domain_regex` || `geosite` || `ip_cidr` || `ip_is_private` || `ip_accept_any`) && (`port` || `port_range`) && - (`source_geoip` || `source_ip_cidr` || `source_ip_is_private`) && + (`source_geoip` || `source_ip_cidr` || `source_ip_is_private`) && (`source_port` || `source_port_range`) && `other fields` diff --git a/docs/configuration/dns/rule.zh.md b/docs/configuration/dns/rule.zh.md index f35cfc7e..0e4e4167 100644 --- a/docs/configuration/dns/rule.zh.md +++ b/docs/configuration/dns/rule.zh.md @@ -202,7 +202,7 @@ icon: material/alert-decagram !!! note "" 默认规则使用以下匹配逻辑: - (`domain` || `domain_suffix` || `domain_keyword` || `domain_regex` || `geosite`) && + (`domain` || `domain_suffix` || `domain_keyword` || `domain_regex` || `geosite` || `ip_cidr` || `ip_is_private` || `ip_accept_any`) && (`port` || `port_range`) && (`source_geoip` || `source_ip_cidr` || `source_ip_is_private`) && (`source_port` || `source_port_range`) &&