Skip to content

Commit

Permalink
Re-enable PreferGo flag for DNS resolver (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Jul 18, 2024
1 parent 985b1a3 commit f2d4a37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fasthttp_http_client_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (*fasthttpHttpClientFactory) Create(o httpClientOptions) httpClient {
td := &fasthttp.TCPDialer{
Concurrency: concurrency,
Resolver: &net.Resolver{
PreferGo: true,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
return nd.DialContext(ctx, "udp", o.DnsResolver)
},
Expand Down

0 comments on commit f2d4a37

Please sign in to comment.