1.8 KiB
Bypass-CN custom rules — 2026-10-15
The managed bypass-CN preset now keeps user rules and enabled rule sets. Effective routing order (after managed DNS processing): mesh DNS/active mesh routes, withdrawn-prefix rejection, ordered custom rules, ordered custom rule sets, ordinary private-IP direct, managed China-IP direct, existing video fallback, proxy final. The custom-mode default action remains saved but does not alter bypass-CN's proxy final. Global/direct still pause user routing rules.
The built-in GeoIP set is appended after custom rule sets, with its tag meshport-geoip-cn reserved to avoid collisions. It does not consume one of the 32 user-set slots. Existing download/cache behavior remains unchanged. UI explains precedence and hides the inactive custom default-action selector outside custom-rule mode. macOS/Android share these engine/UI changes; no platform networking layer or DNS configuration was added.
Validation:
- Full Go suite, race suite and vet passed.
- Real SOCKS counter fixtures test China targets forced to proxy, foreign targets forced direct, private-IP override, custom CIDR and rule-set override, rejection and unchanged preset fallback, with real-IP and FakeIP DNS paths. Active mesh and withdrawn routes cannot be overridden by user rules.
- Validation covers invalid custom rules, reserved tag collisions, all 32 user-set slots and original saved-rule preservation/global-mode isolation.
- Flutter: 58 passed, 8 native-library-dependent tests skipped; analyzer clean. New UI test edits and saves a custom rule while retaining bypass mode and the saved custom-mode default action.
No updated installer, live privileged VPN verification, commit or push was performed for this change. The earlier macOS package/live verification predates this behavior.