Skip to content

Commit

Permalink
Resolve IP4 only
Browse files Browse the repository at this point in the history
  • Loading branch information
folbricht committed Aug 15, 2023
1 parent 4df749a commit cd2a29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socks5.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (d *Socks5Dialer) Dial(network string, address string) (net.Conn, error) {
}
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
ips, err := net.DefaultResolver.LookupIP(ctx, "ip", host)
ips, err := net.DefaultResolver.LookupIP(ctx, "ip4", host)
if err != nil {
Log.WithError(err).Errorf("failed to lookup %q locally", host)
return
Expand Down

0 comments on commit cd2a29f

Please sign in to comment.