mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-14 06:17:31 +00:00
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. |
||
|---|---|---|
| .. | ||
| geoip.md | ||
| geoip.zh.md | ||
| geosite.md | ||
| geosite.zh.md | ||
| index.md | ||
| index.zh.md | ||
| rule.md | ||
| rule.zh.md | ||
| rule_action.md | ||
| rule_action.zh.md | ||
| sniff.md | ||
| sniff.zh.md | ||