feat: set ProxyFromEnvironment
for default http client (#4546)
This commit is contained in:
parent
4dca52be85
commit
47976af0d3
@ -42,6 +42,7 @@ func NewHttpClient() *http.Client {
|
|||||||
return &http.Client{
|
return &http.Client{
|
||||||
Timeout: time.Hour * 48,
|
Timeout: time.Hour * 48,
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify},
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user