Fixed check for IPv6 support.
Merge pull request #288 from schlamar/fix-ipv6-check

Fixed check for IPv6 support.