diff --git a/net/tsdial/tsdial.go b/net/tsdial/tsdial.go index 225033271..3c3db009c 100644 --- a/net/tsdial/tsdial.go +++ b/net/tsdial/tsdial.go @@ -367,6 +367,8 @@ func (d *Dialer) PeerAPIHTTPClient() *http.Client { t := http.DefaultTransport.(*http.Transport).Clone() t.Dial = nil t.DialContext = d.dialPeerAPI + // Do not use the environment proxy for PeerAPI. + t.Proxy = nil d.peerClient = &http.Client{Transport: t} }) return d.peerClient