Added support for IPv6 in host par tof url

url parsing for host part did not support IPv6 address.