feat: set ProxyFromEnvironment for default http client (#4546)

This commit is contained in:
hunshcn 2023-06-09 22:08:54 +08:00 committed by GitHub
parent 4dca52be85
commit 47976af0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ func NewHttpClient() *http.Client {
return &http.Client{
Timeout: time.Hour * 48,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify},
},
}