mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
use custom dialer for http probes
This commit is contained in:
parent
d21f98c6f9
commit
bfd8f5178e
@ -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}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user