mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-20 06:02:14 +03:00
SOCKS5 support gated on ENABLE_SOCKS5_PROXY === "true" (default OFF), so a fresh deploy with no .env (Docker/npm/Electron) silently REJECTED SOCKS5 proxies and the connections fell back to the host IP — a real cause of the codex shared-IP anomaly when operators shipped SOCKS5 proxies but never set the flag. Flip to opt-out: ON by default, disabled only by an explicit falsey value (false/0/no/off). Centralized semantics applied to all gates: isSocks5ProxyEnabled() (dispatcher), isSocks5Enabled() (proxy route), socks5Enabled (proxies route), BUILD_TIME_SOCKS5 (modal), plus updated disabled-state messages and the docs tab. TDD: 4 tests (unset/empty/true-ish ON, falsey OFF). 18/18 proxy tests green, typecheck:core=0.