From 7ba14d63688a6135c434dd7da9b64906f9842643 Mon Sep 17 00:00:00 2001 From: Alex Flom Date: Tue, 19 Oct 2021 16:01:53 -0400 Subject: [PATCH] Proxy fix (#132) * Force proxy * ProxyFromEnvironment is a thing --- pkg/bundle/release.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/bundle/release.go b/pkg/bundle/release.go index 70cf2fd78..6282db593 100644 --- a/pkg/bundle/release.go +++ b/pkg/bundle/release.go @@ -83,9 +83,6 @@ func newClient(u string) (Client, *url.URL, error) { return Client{}, nil, err } - // This needs to handle user input at some point. - //var proxy *url.URL - tls, err := getTLSConfig() if err != nil { return Client{}, nil, err @@ -93,6 +90,8 @@ func newClient(u string) (Client, *url.URL, error) { transport := &http.Transport{ TLSClientConfig: tls, + Proxy: http.ProxyFromEnvironment, + } return NewClient(uuid.New(), transport), upstream, nil }