Fix IPv6 addr matching in url: must be enclosed in [].