Skip to content

Commit

Permalink
ensure http resolver uses Go impl
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Suraci <[email protected]>
  • Loading branch information
vito committed Jun 21, 2023
1 parent 66635ed commit 3dd739f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/netconfhttp/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func NewTransport(rt http.RoundTripper, netConfig *networks.Config) http.RoundTr

dialer := net.Dialer{}
resolver = &net.Resolver{
PreferGo: true,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
var errs error
for _, ns := range netConfig.Dns.Nameservers {
Expand Down

0 comments on commit 3dd739f

Please sign in to comment.