mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +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,
 | 
								DisableKeepAlives:  true,
 | 
				
			||||||
			Proxy:              http.ProxyURL(nil),
 | 
								Proxy:              http.ProxyURL(nil),
 | 
				
			||||||
			DisableCompression: true, // removes Accept-Encoding header
 | 
								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}
 | 
						return httpProber{transport, followNonLocalRedirects}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user