mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-14 11:12:17 +03:00
The 3.8.44 "Test All" button (POST /api/settings/proxies/auto-test) flipped a proxy to inactive on a failed reachability probe; since the egress selector excludes inactive proxies, a flaky probe (unreachable httpbin.org, a proxy that blocks HEAD, a slow paid proxy) silently disabled every proxy that failed. Make automated probes read-only by default via a shared statusPolicy helper (opt back into test-and-set with PROXY_HEALTH_AUTO_DEACTIVATE=true), and add a bulk enable/disable endpoint (POST /api/settings/proxies/batch-activate) + toolbar action so an operator can re-activate proxies in one click. Complements the core fail-closed + scheduler fix in #6296. TDD: tests/unit/proxy-health-6246.test.ts. Co-authored-by: tenshiak <tenshiak@users.noreply.github.com>