mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(proxy): add shared transport for proxies (#1808)
fix(proxy): use separate transport for proxies
This commit is contained in:
parent
59c5858bf0
commit
41216babe6
2 changed files with 21 additions and 1 deletions
|
@ -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 != "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue