mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Use proxy in utils.ReadImageFromURL (#4637)
This commit is contained in:
@@ -39,6 +39,7 @@ func ReadImageFromURL(ctx context.Context, url string) ([]byte, error) {
|
||||
client := &http.Client{
|
||||
Transport: &http.Transport{ // ignore insecure certificates
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
|
||||
Timeout: imageGetTimeout,
|
||||
|
||||
Reference in New Issue
Block a user