Merge pull request #326 from strukturag/proxy-backendclient

Use proxy from environment for backend client requests.
This commit is contained in:
Joachim Bauch 2022-08-30 10:34:57 +02:00 committed by GitHub
commit 4dfffca285
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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{