fix parseDomain with ipv6 in url