Fix ipv6 support