From 606cdd3453a26d2c799d2346a1df63ba362d1624 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 16 Apr 2022 00:49:57 +0100 Subject: [PATCH] Load proxy config when probing for server TLS certificate (#4052) mc alias set recently started to probe the TLS certificate for the remote server, however it should load the proxy environment configuration if any. --- cmd/alias-set.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/alias-set.go b/cmd/alias-set.go index f5947211..3da307b0 100644 --- a/cmd/alias-set.go +++ b/cmd/alias-set.go @@ -378,6 +378,7 @@ func promptTrustSelfSignedCert(ctx context.Context, endpoint, alias string) (*x5 client := http.Client{ Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{ RootCAs: globalRootCAs, // make sure to use loaded certs before probing },