We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socks/net.go
Line 46 in 4d67a70
func lookupIP(host string) (net.IP, error) { ips, err := net.LookupIP(host) if err != nil { return nil, err } if len(ips) == 0 { return nil, fmt.Errorf("cannot resolve host: %s", host) } for _, ip := range ips { ip4 := ip.To4() if len(ip4) != net.IPv4len { continue } return ip4, nil } return nil, fmt.Errorf("no ipv4 address found for host: %s", host) }
The text was updated successfully, but these errors were encountered:
Fixed
Sorry, something went wrong.
No branches or pull requests
socks/net.go
Line 46 in 4d67a70
The text was updated successfully, but these errors were encountered: