From b4823bec8ac061472173498abeaaff8d179b1546 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:28:30 +1100 Subject: [PATCH] Use proxy in utils.ReadImageFromURL (#4637) --- pkg/utils/image.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/utils/image.go b/pkg/utils/image.go index 33edea19c..a5d9bb1f1 100644 --- a/pkg/utils/image.go +++ b/pkg/utils/image.go @@ -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,