Merge "Wrap subscriber IP in square brackets when IPv6"

This commit is contained in:
Zuul 2018-03-12 08:13:10 +00:00 committed by Gerrit Code Review
commit 60b4c43566

View File

@ -130,7 +130,7 @@ class Driver(base.DriverBase):
else:
host = socket.gethostname()
self.notification_factory.set_subscription_url(
'http://%s:%s/' % (host, port))
'http://%s:%s/' % (_escape_ipv6(host), port))
self._api.set_subscription_factory(self.notification_factory)
task = asyncio.Task(coro_notification)