diff --git a/pkg/probe/http/http.go b/pkg/probe/http/http.go index 9fff5744e4b..41417657eee 100644 --- a/pkg/probe/http/http.go +++ b/pkg/probe/http/http.go @@ -53,7 +53,11 @@ func NewWithTLSConfig(config *tls.Config, followNonLocalRedirects bool) Prober { DisableKeepAlives: true, Proxy: http.ProxyURL(nil), DisableCompression: true, // removes Accept-Encoding header + // DialContext creates unencrypted TCP connections + // and is also used by the transport for HTTPS connection + DialContext: probe.ProbeDialer().DialContext, }) + return httpProber{transport, followNonLocalRedirects} }