Skip to content

Commit

Permalink
fix passing proxy config from environment when using config with disa…
Browse files Browse the repository at this point in the history
…bled TLS certificate verification
  • Loading branch information
zekker6 committed Apr 2, 2021
1 parent 35c6f85 commit cedb590
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (s *S3) Connect() error {
if s.Config.DisableCertVerification {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Proxy: http.ProxyFromEnvironment,
}
awsConfig.HTTPClient = &http.Client{Transport: tr}
}
Expand Down

0 comments on commit cedb590

Please sign in to comment.