Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: JoinHostPort should not add [ ] when the host is ipv6 and it is surrounded by brackets #26006
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
The function works as documented -
changed the title
net.JoinHostPort should not add [ ] when the host is ipv6 and it is surrounded by brackets
Jun 22, 2018
@agnivade, I'm not concerned about breaking people who depend on getting bogus
I'm just not seeing how somebody ends up with brackets around an IPv6 literal without a port. Where do such values come from that you then need to call
At most time, config file is written by human.
Some guys think writing an ipv6 wrapped with brackets is a good idea because if we open a website on chrome with ipv6 address instead of hostname, they should make the ipv6 wrapped with brackets.
Others think ipv6 just an ip address why ipv6 is different from ipv4, so they write ipv6 without brackets.
oh what is HOST? what is the definition of host？？？ Russ Cox <firstname.lastname@example.org> 于 2018年6月26日周二 04:05写道：…
Closed #26006 <#26006>. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#26006 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJoPKSDMTVNv-TpJlyBIWxK4JYZ61u1rks5uAUKZgaJpZM4UzV3u> .