From b5fabbf75e86e78d5eb0665c99acd6e8423f0556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Wed, 2 Aug 2023 14:08:14 +0200 Subject: [PATCH] http_proxy: log when using custom root CA certificates --- http_proxy.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/http_proxy.go b/http_proxy.go index 19cefc29..8a3ed39d 100644 --- a/http_proxy.go +++ b/http_proxy.go @@ -134,10 +134,8 @@ func NewHTTPProxy(cfg *HTTPProxyConfig, pr PACResolver, cm *CredentialsMatcher, rt = http.DefaultTransport.(*http.Transport).Clone() //nolint:forcetypeassert // we know it's a *http.Transport } else if tr, ok := rt.(*http.Transport); !ok { log.Debugf("using custom HTTP transport %T", rt) - } else { - if tr.TLSClientConfig != nil && tr.TLSClientConfig.RootCAs != nil { - log.Infof("using custom root CA certificates") - } + } else if tr.TLSClientConfig != nil && tr.TLSClientConfig.RootCAs != nil { + log.Infof("using custom root CA certificates") } hp := &HTTPProxy{ config: *cfg,