librabbitmq icon indicating copy to clipboard operation
librabbitmq copied to clipboard

librabbitmq errors on IPv6 address

Open gdbassett opened this issue 9 years ago • 2 comments

In iniit.py for rabbit mq qt line 191: host, port = host.split(':') Fails with ipv6 addresses, (e.g. amqp://user:password@[fe80::1]:4572/)

gdbassett avatar Nov 08 '16 17:11 gdbassett

any proposed fix for that?

auvipy avatar Jan 11 '17 04:01 auvipy

I found a robust parser here: http://rosettacode.org/wiki/Parse_an_IP_Address#Python that might work. I wish there was a simple way, but my limited regex expertise isn't gracing me with anything simple method to match ports and hosts in both ipv4 addresses and ipv6 addresses in brackets.

Also, I suppose this assumes whatever is downstream for 'host' can handle the ipv6 address. If not, maybe the py2 backport of the ipaddress module can help.

gdbassett avatar Feb 11 '17 14:02 gdbassett