7103184c8e18de42169ecebb33547ca67e506ec8
reqwest honours HTTP_PROXY/ALL_PROXY from the environment by default. A self-hosted Jackett is normally reached over loopback, and routing loopback through an inherited proxy breaks it — which matters once torad runs in an environment where those vars are set for VPN reasons. Extracts the builder into `build_http_client` so the behaviour is directly testable, and adds a test that serves one response from a loopback listener while ALL_PROXY points at a dead port. The test is falsifiable: removing .no_proxy() makes it fail with ConnectionRefused against the proxy address, which was verified before committing. The proxy URL is deliberately http:// rather than socks5:// — reqwest is built here without its `socks` feature, so a SOCKS proxy would be ignored and the test would pass either way. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Description
No description provided
Languages
Rust
99.1%
Nix
0.9%