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: clean up port parsing #15326
https://go-review.googlesource.com/#/c/19720/ updated the parsing of port numbers, but now it accepts
Nobody ever told me why that should be allowed, but the CL was submitted anyway. Or I missed it, but I can't find it.
Investigate and ideally fix.
Yes, I will send a followup CL for better consistency. FWIW, unfortunately the following snippet works w/ CGO_ENABLED=1 older versions or GODEBUG=netdns=cgo newer versions.
Probably we should make consistent representation on transport service names and literal port numbers in ABNF for Dial/Listen APIs before Go 1.