mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-24 22:34:04 +08:00
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{
|
||||
Timeout: time.Hour * 48,
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user