mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 18:52:38 +00:00
use custom dialer for http probes
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user