Skip to content

Commit

Permalink
Use proxy in utils.ReadImageFromURL (stashapp#4637)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored and halkeye committed Sep 1, 2024
1 parent 354c442 commit 58a73eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/utils/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58a73eb

Please sign in to comment.