-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
test single label hostnames #685
test single label hostnames #685
Conversation
RFC1123 allows single label hostnames with hyphens in between and starting with a digit. Signed-off-by: Stephan Wurm <[email protected]>
Signed-off-by: Stephan Wurm <[email protected]>
Both, RFC1034 and RFC1123, allow hostnames with digits in between and at the end. Signed-off-by: Stephan Wurm <[email protected]>
Drafts 4, 6, and 7 are referencing RFC1034, which, in contrast to RFC1123, does not allow a starting digit in hostnames. Signed-off-by: Stephan Wurm <[email protected]>
Drafts 4, 6, and 7 are based on RFC1034, not allowing a leading digit in hostnames. This was extended only later by newer drafts referencing RFC1123. Removed the checks for leading digit in hostnames from the older drafts, as strict checking with the old format could break existing setups. Signed-off-by: Stephan Wurm <[email protected]>
Great, thanks for the PR! |
Sorry, I meant to comment this before as well but it seems I forgot to (so we can move this to another issue if need be) -- we also need to address adding tests to the idn-hostname format, which also allows these! |
@swaeberle #686 if you're interested in helping there too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post-merge tACK
RFC1123 allows single label hostnames with hyphens in between and starting with a digit.