mirror of https://github.com/stashapp/stash.git
Use proxy in utils.ReadImageFromURL (#4637)
This commit is contained in:
parent
945188a0ba
commit
b4823bec8a
|
@ -39,6 +39,7 @@ func ReadImageFromURL(ctx context.Context, url string) ([]byte, error) {
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Transport: &http.Transport{ // ignore insecure certificates
|
Transport: &http.Transport{ // ignore insecure certificates
|
||||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
},
|
},
|
||||||
|
|
||||||
Timeout: imageGetTimeout,
|
Timeout: imageGetTimeout,
|
||||||
|
|
Loading…
Reference in New Issue