v0.12.207 — Honor HTTPS_PROXY/HTTP_PROXY/ALL_PROXY for upstream
Honor standard proxy environment variables for upstream traffic.
HTTPS_PROXY/HTTP_PROXY/ALL_PROXYfallback (src/upstream-proxy.ts). Node's fetch (undici) ignores the standard proxy env vars, so users whose system traffic is meant to flow through a local proxy (mihomo/clash without TUN mode, corporate proxies) had ClawRouter connecting directly while theircurltests went through the proxy — on throttled routes (e.g. RU → Google-hosted gateway) this surfaced as instant 500s on large request bodies,Premature close, and per-model timeouts, while small requests slipped through. WhenBLOCKRUN_UPSTREAM_PROXYis unset, ClawRouter now applies the standard env vars via undici'sEnvHttpProxyAgent.NO_PROXYis honored, and loopback hosts (localhost,127.0.0.1,::1) are always excluded so local health checks and sibling proxies stay direct.BLOCKRUN_UPSTREAM_PROXYstill wins when set; SOCKS URLs in the standard env vars are not auto-applied (a warning points toBLOCKRUN_UPSTREAM_PROXY=socks5://…). (Test:test/upstream-proxy.test.ts, 9 cases, dependency-injected — no process-global mutation in tests.)
npm: @blockrun/clawrouter@0.12.207