-
-
Notifications
You must be signed in to change notification settings - Fork 596
Closed
Labels
BugSomething doesn't work the way it should.Something doesn't work the way it should.
Description
The hostname format checker currently does not allow hostnames without a domain part, hence a single label like localhost is rejected as invalid hostname.
This is caused by class FQDN from fqdn assuming a minimum of two labels.
AFAIK, single labels are not excluded by the RFC 1123 and class FQDN can be forced to accept also single labels in its constructor (min_labels=1).
If rejecting single labels is not the intended behavior, I will send a PR.
Metadata
Metadata
Assignees
Labels
BugSomething doesn't work the way it should.Something doesn't work the way it should.