mirror of https://github.com/Xhofe/alist
				
				
				
			feat: set `ProxyFromEnvironment` for default http client (#4546)
							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…
	
		Reference in New Issue