Skip to content

Conversation

jipperinbham
Copy link

When attempting to use kuard where /etc/resolv.conf contained an IPv6 for the nameserver, it would error when making the DNS query due to net.Dial expecting the IP to be surround with square brackets. In order to detect if it's IPv6, it parses the IP string to a net.IP and relies on To4() returning nil for determining it's not a v4 and so must be a v6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant