Skip to content

Commit

Permalink
switch to tcp resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldwan committed Aug 13, 2021
1 parent 8757649 commit d84357d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wg/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func Connect(cfg Config) (*Tunnel, error) {
resolv: &net.Resolver{
PreferGo: true,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
return gNet.DialContext(ctx, network, net.JoinHostPort(dnsIP.String(), "53"))
return gNet.DialContext(ctx, "tcp", net.JoinHostPort(dnsIP.String(), "53"))
},
},
}, nil
Expand Down

0 comments on commit d84357d

Please sign in to comment.