Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librabbitmq errors on IPv6 address #92

Open
gdbassett opened this issue Nov 8, 2016 · 2 comments
Open

librabbitmq errors on IPv6 address #92

gdbassett opened this issue Nov 8, 2016 · 2 comments

Comments

@gdbassett
Copy link

gdbassett commented Nov 8, 2016

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/)

@auvipy
Copy link
Member

auvipy commented Jan 11, 2017

any proposed fix for that?

@gdbassett
Copy link
Author

gdbassett commented Feb 11, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants