mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-10-25 05:41:07 +00:00
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.
This commit is contained in:
parent
4444f297c2
commit
1389e2fd8e
2 changed files with 3 additions and 3 deletions
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
|
|
@ -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`) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue