Browse Source

Add square brackets for ipv6 based hosts

Closes-Bug: #1364837
Change-Id: I8f9702377cc049b74622c2db847ffac3ba946b3a
changes/89/119389/3
Davanum Srinivas 7 years ago
committed by Davanum Srinivas (dims)
parent
commit
ff6c5e95da
  1. 3
      oslo/messaging/_drivers/impl_qpid.py

3
oslo/messaging/_drivers/impl_qpid.py

@ -478,6 +478,9 @@ class Connection(object):
hostname, port = netutils.parse_host_port(
adr, default_port=5672)
if ':' in hostname:
hostname = '[' + hostname + ']'
params = {
'host': '%s:%d' % (hostname, port),
'username': self.conf.qpid_username,

Loading…
Cancel
Save