Fix url resolving error when using numeric ipv6