Use proxy from environment for backend client requests.

This commit is contained in:
Joachim Bauch 2022-08-30 10:06:06 +02:00
parent 06a1d072f1
commit f1f018e338
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func NewHttpClientPool(maxConcurrentRequestsPerHost int, skipVerify bool) (*Http
transport := &http.Transport{
MaxIdleConnsPerHost: maxConcurrentRequestsPerHost,
TLSClientConfig: tlsconfig,
Proxy: http.ProxyFromEnvironment,
}
result := &HttpClientPool{