From 7ff8907eda810d269b262c956642d9dc7aa99696 Mon Sep 17 00:00:00 2001 From: Andrii Vakarev Date: Fri, 19 Feb 2021 01:03:38 +0100 Subject: [PATCH] Respect system proxy --- client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client.go b/client/client.go index 348976f0..394904d0 100644 --- a/client/client.go +++ b/client/client.go @@ -27,6 +27,7 @@ func GetHTTPClient(insecure bool) *http.Client { Transport: &http.Transport{ MaxIdleConns: 100, MaxIdleConnsPerHost: 20, + Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, }, @@ -41,6 +42,7 @@ func GetHTTPClient(insecure bool) *http.Client { Transport: &http.Transport{ MaxIdleConns: 100, MaxIdleConnsPerHost: 20, + Proxy: http.ProxyFromEnvironment, }, } }