From b6429e3d3490ad190e93f4d20c73b489b54807c7 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Tue, 17 Jan 2023 11:23:16 +0000 Subject: [PATCH] use custom dialer for http probes --- pkg/probe/http/http.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/probe/http/http.go b/pkg/probe/http/http.go index 025418becb3c3..785ddad5de24e 100644 --- a/pkg/probe/http/http.go +++ b/pkg/probe/http/http.go @@ -55,7 +55,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} }