Skip to content

Commit

Permalink
Merge pull request #124 from rosskirkpat/bug-fix/csi-proxy-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipsj authored Jun 25, 2022
2 parents f18aa93 + f422c9e commit 92d1da2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/csiproxy/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ func (p *Proxy) download() error {
}

// default to insecure which matches system-agent functionality
transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}
// if a proxy is set with the proper envvars, we will use it
// as long as the req does not match an entry in no_proxy env var
transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, Proxy: http.ProxyFromEnvironment}

if p.tlsCfg != nil && !*p.tlsCfg.Insecure && p.tlsCfg.CertFilePath != "" {
transport.TLSClientConfig.InsecureSkipVerify = false
Expand Down

0 comments on commit 92d1da2

Please sign in to comment.