Fix for IPv6 support.