Skip to content

Commit

Permalink
feat: set ProxyFromEnvironment for default http client (#4546)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunshcn authored Jun 9, 2023
1 parent 4dca52b commit 47976af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/base/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
},
}
Expand Down

0 comments on commit 47976af

Please sign in to comment.