Browse Source

Merge pull request #4830 from mischief/proxy-env

pkg/transport: use ProxyFromEnvironment when constructing a transport
Nick Owens 9 years ago
parent
commit
a054ae320b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/transport/listener.go

+ 1 - 0
pkg/transport/listener.go

@@ -67,6 +67,7 @@ func NewTransport(info TLSInfo, dialtimeoutd time.Duration) (*http.Transport, er
 	}
 
 	t := &http.Transport{
+		Proxy: http.ProxyFromEnvironment,
 		Dial: (&net.Dialer{
 			Timeout: dialtimeoutd,
 			// value taken from http.DefaultTransport