-
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 handling of IPv6 broadcast addresses #816
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@magnetised thanks for this, just one minor comment
@@ -77,11 +78,29 @@ func (p *Producer) Address() string { | |||
} | |||
|
|||
func (p *Producer) HTTPAddress() string { | |||
return fmt.Sprintf("%s:%d", p.BroadcastAddress, p.HTTPPort) | |||
return addressWithPort(p.BroadcastAddress, p.HTTPPort) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go has builtins for this, let's use net.JoinHostPort
@mreiferson Done. standard library FTW. |
Re-triggered those flakey test runs. In the meantime would you mind squashing down to one commit? |
apparently I don't know how to use git or github anymore ^^^ |
7f13aca
to
d8e4db1
Compare
@magnetised thanks! |
@mreiferson I'd forgotten all about this - thanks for the unintentional email-storm reminder :) |
@mreiferson any idea when the next release is? |
Trying to get things in shape for one! |
@mreiferson great. good luck |
Fixes #815