mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
781 B
781 B
- feat(api): opt-in scheduled auto-sync for free-proxy sources (
src/lib/freeProxyProviders/scheduler.ts) — periodically re-runs the free-proxy providersync()calls (iplocate, proxifly, oneproxy, webshare) that previously only ran via a manualPOST /api/settings/free-proxies/sync, so a seeded pool no longer goes stale as free-proxy lists rotate; gated byFREE_PROXY_AUTO_SYNC_ENABLED(defaultfalse) andFREE_PROXY_AUTO_SYNC_INTERVAL_MS(default 30min, floor-clamped to 5min), reuses the existingisBuildProcess()/OMNIROUTE_DISABLE_BACKGROUND_SERVICESguards, and shares onerunFreeProxySyncCycle()code path with the manual route;GET /api/settings/free-proxies/statsnow also reportsautoSync: { enabled, intervalMs }(#7079 — thanks @chirag127).