Skip to content

Commit

Permalink
use custom dialer for http probes
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea authored and SergeyKanzhelev committed Jan 23, 2023
1 parent cc7e738 commit b6429e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/probe/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit b6429e3

Please sign in to comment.