Skip to content

Commit 2be6641

Browse files
committed
OpenStack: Add support for Proxy
This commit makes sure the Proxy env vars are used when authenticating with OpenStack API.
1 parent 830c1b2 commit 2be6641

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/storage/swift/swift.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ func (d *driver) getSwiftClient() (*gophercloud.ServiceClient, error) {
248248
certPool.AppendCertsFromPEM([]byte(cert))
249249
client := http.Client{
250250
Transport: &http.Transport{
251+
Proxy: http.ProxyFromEnvironment,
251252
TLSClientConfig: &tls.Config{
252253
RootCAs: certPool,
253254
},

0 commit comments

Comments
 (0)