-
Notifications
You must be signed in to change notification settings - Fork 18k
net: "127.0.0.1:" should be an invalid tcp4 address for ResolveTCPAddr #56144
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
Comments
Hi ,i just found that "127.0.0.1:" is a valid tcp4 address for I investigated this issue: |
why should ":" constitute a valid IPv4 address, with it not being defined in any textual IPv4 address representation. |
yes ,it should be invalid ,but in my case it is a valid tcp4 addr. Maybe i should change the title. |
Working as intended, see #13610 |
maybe i misunderstood something ,but it is nothing about |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/KWM001uZ1aA
What did you expect to see?
error is not nil and program panic.
What did you see instead?
127.0.0.1:0
Program exited.
The text was updated successfully, but these errors were encountered: