sing-box/docs/configuration/dns
世界 b0c6762bc1
route: merge rule_set branches into outer rules
Treat rule_set items as merged branches instead of standalone boolean
sub-items.

Evaluate each branch inside a referenced rule-set as if it were merged
into the outer rule and keep OR semantics between branches. This lets
outer grouped fields satisfy matching groups inside a branch without
introducing a standalone outer fallback or cross-branch state union.

Keep inherited grouped state outside inverted default and logical
branches. Negated rule-set branches now evaluate !(...) against their
own conditions and only reapply the outer grouped match after negation
succeeds, so configs like outer-group && !inner-condition continue to
work.

Add regression tests for same-group merged matches, cross-group and
extra-AND failures, DNS merged-branch behaviour, and inverted merged
branches. Update the route and DNS rule docs to clarify that rule-set
branches merge into the outer rule while keeping OR semantics between
branches.
2026-03-25 14:00:29 +08:00
..
server documentation: Fix Chinese link anchors 2026-03-16 12:24:10 +08:00
fakeip.md documentation: Refactor DNS 2025-07-08 13:12:15 +08:00
fakeip.zh.md documentation: Fix Chinese link anchors 2026-03-16 12:24:10 +08:00
index.md documentation: Minor fixes 2025-07-08 13:14:42 +08:00
index.zh.md documentation: Minor fixes 2025-07-08 13:14:42 +08:00
rule.md route: merge rule_set branches into outer rules 2026-03-25 14:00:29 +08:00
rule.zh.md route: merge rule_set branches into outer rules 2026-03-25 14:00:29 +08:00
rule_action.md documentation: Fix description of reject DNS action behavior 2025-07-08 13:14:40 +08:00
rule_action.zh.md documentation: Fix description of reject DNS action behavior 2025-07-08 13:14:40 +08:00