sing-box/docs/configuration/route
世界 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
..
geoip.md documentation: Outbound domain resolver 2025-07-08 13:12:15 +08:00
geoip.zh.md documentation: Fix Chinese link anchors 2026-03-16 12:24:10 +08:00
geosite.md documentation: Outbound domain resolver 2025-07-08 13:12:15 +08:00
geosite.zh.md documentation: Fix Chinese link anchors 2026-03-16 12:24:10 +08:00
index.md documentation: Outbound domain resolver 2025-07-08 13:12:15 +08:00
index.zh.md documentation: Fix Chinese link anchors 2026-03-16 12:24:10 +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 Update bypass action behavior for auto redirect 2026-01-17 05:48:41 +08:00
rule_action.zh.md documentation: Fix Chinese link anchors 2026-03-16 12:24:10 +08:00
sniff.md Add ntp protocol sniffing 2025-07-08 13:12:26 +08:00
sniff.zh.md documentation: Minor fixes 2025-07-08 13:12:33 +08:00