Files
OmniRoute/changelog.d/features/7079-free-proxy-autosync.md
2026-07-19 14:37:05 -03:00

781 B

  • feat(api): opt-in scheduled auto-sync for free-proxy sources (src/lib/freeProxyProviders/scheduler.ts) — periodically re-runs the free-proxy provider sync() calls (iplocate, proxifly, oneproxy, webshare) that previously only ran via a manual POST /api/settings/free-proxies/sync, so a seeded pool no longer goes stale as free-proxy lists rotate; gated by FREE_PROXY_AUTO_SYNC_ENABLED (default false) and FREE_PROXY_AUTO_SYNC_INTERVAL_MS (default 30min, floor-clamped to 5min), reuses the existing isBuildProcess()/OMNIROUTE_DISABLE_BACKGROUND_SERVICES guards, and shares one runFreeProxySyncCycle() code path with the manual route; GET /api/settings/free-proxies/stats now also reports autoSync: { enabled, intervalMs } (#7079 — thanks @chirag127).