Alexander 7103184c8e fix(torad): bypass system proxy env vars when fetching .torrent sources
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>
2026-08-15 00:17:19 +02:00
2026-07-03 19:10:26 +02:00
2026-07-03 19:10:26 +02:00
2026-07-03 19:10:26 +02:00
2026-07-02 17:02:49 +02:00
2026-07-03 22:21:18 +02:00
2026-07-25 12:44:20 +02:00
2026-07-03 22:21:18 +02:00
2026-07-03 19:10:26 +02:00
S
Description
No description provided
542 KiB
Languages
Rust 99.1%
Nix 0.9%