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

Parser for INFO doesn't handle IPv6 addresses correctly #244

Closed
sasbury opened this issue Jun 14, 2019 · 0 comments
Closed

Parser for INFO doesn't handle IPv6 addresses correctly #244

sasbury opened this issue Jun 14, 2019 · 0 comments

Comments

@sasbury
Copy link
Contributor

sasbury commented Jun 14, 2019

INFO {"server_id":"NCWY6BXJZJP4APXPYHHKMHVB6G5BELI44TRUEJDJMWDXOTHT7UBHRRGI","version":"2.0.0-RC5","proto":1,"go":"go1.11.8","host":"0.0.0.0","port":4223,"max_payload":1048576,"client_id":12,"connect_urls":["192.168.86.128:4223","[fe80::1849:828f:afdb:b00c%en1]:4224"]}

gets turned into:

Event - nats: discovered servers
nats://localhost:4223
192.168.86.128:4223
[fe80::1849:828f:afdb:b00c%en1

The brackets are assumed to delineate the array but are also on the address.

@sasbury sasbury mentioned this issue Jun 18, 2019
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

1 participant