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:
@@ -109,8 +109,12 @@ type githubTagResponse struct {
|
||||
}
|
||||
|
||||
func makeGithubRequest(ctx context.Context, url string, output interface{}) error {
|
||||
|
||||
transport := &http.Transport{Proxy: http.ProxyFromEnvironment}
|
||||
|
||||
client := &http.Client{
|
||||
Timeout: 3 * time.Second,
|
||||
Timeout: 3 * time.Second,
|
||||
Transport: transport,
|
||||
}
|
||||
|
||||
req, _ := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
|
||||
|
||||
Reference in New Issue
Block a user