-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqadmin: fix nodes list links with ipv6 addresses #1186
Conversation
An ipv6 address needs to be wrapped in "[]" when joined with port because ":" inside the ipv6 address makes it ambiguous. Most (all?) of our go code uses net.JoinHostPort() which does this.
stuff moved around a bit
note that the topic and channel pages do this, and it results in the correct links:
|
@ploxiln I have tested this locally. But it can not be operated successfully. Have you tested this PR against non localhost ipv6 address? Commands:
|
@ploxiln I have investigated this further. It turns out that something has changed after v0.3.8, which we use internally. I have tested your changes against master branch, it is ok. And i think we can merge this. :) As for our cases, we need to just merge #1179 internally since it is based on v0.3.8. :) I will close #1179. |
/lgtm |
That explains the confusion :) |
I think we can merge this for now. But i have no merge right. BTW, what about the request about promoting myself to be a NSQ member? |
yeah, was just giving some more comment time before merge :) It turns out I actually don't have sufficient privileges to add other members to the organization, I will ping some people about that. |
Thanks for your help @ploxiln . Any more details we can chat on email. :) |
alternative to #1179
@andyxning please try this. I've clicked around and all links seem to work. (be sure to do a full refresh of nsqadmin, if you have the web page generated from a previous version already open in a tab.)
test setup:
./build/nsqlookupd
./build/nsqd --broadcast-address=::1 --lookupd-tcp-address=[::1]:4160
curl localhost:4151/pub?topic=whatever -d '{"foo": 20}' ; echo
./build/nsq_tail --lookupd-http-address=[::1]:4161 --topic=whatever --channel=t3
./build/nsqadmin --lookupd-http-address=[::1]:4161
cc @jehiah