-
Notifications
You must be signed in to change notification settings - Fork 1.4k
'127.0.0.1:' on tag 'tcp4_addr' #1003
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
@7a6bb3ef3 Hi. I actually can't find any specification about this, but the Go A similar code on rust fails because that probably is not a valid address. I will see what can be done about this. |
As far as I understand it's basically a Go stdlib thing, where if the port is left empty it assumes port 0. It would still work with |
I guess the existing state of the logic for saying "X.X.X.X:" is a valid tcp4_addr is to not opinionated the validation rule as different underlying platforms behave slightly different from each other in dealing with 'blank' port specification. That is what I understand from reading #13610. Hence yes, as pointed out by @zemzale, perhaps developers are to consciously aware whether their intended code target will honour the rule or not. |
[Y] I have looked at the documentation here first?
[Y] I have looked at the examples provided that may showcase my question here?
Package version eg. v9, v10:
V10
Issue, Question or Enhancement:
Is '127.0.0.1:' a valid Tcp4 address? Basically I don't see any sense, if there is any RFC section or reasonable explanation ,i'm glad to know.
Code sample, to showcase or reproduce:
The text was updated successfully, but these errors were encountered: