Skip to content

Commit

Permalink
Proxy fix (#132)
Browse files Browse the repository at this point in the history
* Force proxy

* ProxyFromEnvironment is a thing
  • Loading branch information
Alex Flom authored Oct 19, 2021
1 parent 7cfb493 commit 7ba14d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/bundle/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,15 @@ 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
}

transport := &http.Transport{
TLSClientConfig: tls,
Proxy: http.ProxyFromEnvironment,

}
return NewClient(uuid.New(), transport), upstream, nil
}
Expand Down

0 comments on commit 7ba14d6

Please sign in to comment.