Descriptionnet: SplitHostPort: adjust error message for missing port in IPv6 addresses
An hostport of "[::1]" now results in the same error message
"missing port in address" as the hostport value "127.0.0.1",
so SplitHostPort won't complain about "too many colons
in address" anymore for an IPv6 address missing a port.
Added tests checking the error values.
Fixes issue 4526.
Patch Set 1 #Patch Set 2 : diff -r 88ae367d61aa https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 88ae367d61aa https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 4 : diff -r 08a1396e9aa7 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 7359dad2971d https://go.googlecode.com/hg/ #MessagesTotal messages: 13
|