You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your input is invalid. JoinHostPort expects a host name, which does include square brackets. The square brackets are only valid when joined with a port.
mikioh
changed the title
JoinHostPort() enclose IPv6 in square brackets even if host is already in this format
net: JoinHostPort() enclose IPv6 in square brackets even if host is already in this format
May 24, 2017
What version of Go are you using (
go version
)?go version go1.8.1 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.org/p/nrIZqsxHIY
What did you expect to see?
[[fd41:9eff:c33::1b:ffff]]:5672
What did you see instead?
[fd41:9eff:c33::1b:ffff]:5672
The text was updated successfully, but these errors were encountered: