mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Allow use of Proxy (#3284)
* Proxy config * Disable proxy for localhost & local LAN * No_proxy is now configurable
This commit is contained in:
@@ -103,7 +103,13 @@ func downloadSingle(ctx context.Context, configDirectory, url string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
transport := &http.Transport{Proxy: http.ProxyFromEnvironment}
|
||||
|
||||
client := &http.Client{
|
||||
Transport: transport,
|
||||
}
|
||||
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user