mirror of https://github.com/kubernetes/kops.git
Merge pull request #12150 from aojea/http_proxy
leverage proxy env variables
This commit is contained in:
commit
ab7c1e9e06
|
|
@ -83,6 +83,7 @@ func downloadURLAlways(url string, destPath string, dirMode os.FileMode) error {
|
|||
// to avoid idle downloads to hang the program
|
||||
httpClient := &http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
|
|
|
|||
Loading…
Reference in New Issue