Remove '[]' from around IPv6 addresses with a port number.