fixed ipv6 support when running with --without-ipv6