Skip to content

Commit 9fc29ee

Browse files
authored
Ensure proxy environment variables are respected. (#94)
1 parent 78361be commit 9fc29ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func createTransport(tlsClientConf *tls.Config, forceHTTP2 bool, extraH2ALPNs []
124124

125125
transport := &http.Transport{
126126
ForceAttemptHTTP2: true,
127+
Proxy: http.ProxyFromEnvironment,
127128
}
128129

129130
if tlsClientConf != nil {

0 commit comments

Comments
 (0)