fix(proxy): add shared transport for proxies (#1808)

fix(proxy): use separate transport for proxies
This commit is contained in:
ze0s 2024-11-06 18:55:23 +01:00 committed by GitHub
parent 59c5858bf0
commit 41216babe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View file

@ -160,7 +160,7 @@ func GetProxiedHTTPClient(p *domain.Proxy) (*http.Client, error) {
proxyUrl.User = url.UserPassword(p.User, p.Pass)
}
transport := sharedhttp.TransportTLSInsecure
transport := sharedhttp.ProxyTransport
// set user and pass if not empty
if p.User != "" && p.Pass != "" {