#4562·iroh

net_report probes follow HTTP_PROXY / HTTPS_PROXY when no proxy is configured

Author: fluffyponyCreated Sep 26, 2026Updated Sep 26, 2026

#4463 routed the captive portal check and the HTTPS latency probe through the endpoint's configured proxy, which is great - but when no proxy is configured, the probes still pick up whatever proxy the environment names.

reqwest_client_builder (iroh/src/util.rs:10) never calls .no_proxy(), and reportgen.rs only adds a proxy when proxy_url is Some (:604 to :608 for the captive portal check, :833 to :837 for the latency probe), so reqwest's default detection stays on and reads HTTP_PROXY, HTTPS_PROXY and ALL_PROXY. The relay connection doesn't do that - it only uses the proxy the endpoint was given - so the two disagree. An endpoint that was deliberately set up without a proxy still sends its probes (and the relay hostnames in them) through the environment's proxy, and what it measures is the latency through that proxy, not along the path the relay connection takes.

Suggest calling .no_proxy() whenever proxy_url is None, so the probes go where the endpoint's own traffic goes. Related but not the same thing - #4478.

Happy to send a PR for this too.