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

net: document that SplitHostPort and JoinHostPort never treat non-IP literals enclosed in square brackets #18060

Closed
mikioh opened this issue Nov 27, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@mikioh
Copy link
Contributor

commented Nov 27, 2016

As per #18059, we need to document that both SplitHostPort and JoinHostPort never treat non-IP literals enclosed in square brackets, because the output of JoinHostPort must be able to be used for connection setup functions and methods; net.Dial("tcp", "[name%zone]:8080") is not defined behavior and hard to solve the ambiguity of "name%zone".

@mikioh mikioh added this to the Go1.9 milestone Nov 27, 2016

@gopherbot

This comment has been minimized.

Copy link

commented Apr 13, 2017

CL https://golang.org/cl/40510 mentions this issue.

@gopherbot gopherbot closed this in dc74f51 Apr 14, 2017

@golang golang locked and limited conversation to collaborators Apr 14, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.