ypcrts / fqdn

RFC-compliant FQDN validation and manipulation for Python.
http://fqdn.readthedocs.io/
Mozilla Public License 2.0
30 stars 11 forks source link

Bug: RFC1035 Should accept hyphen as last octet when label length is greater than 1 #16

Closed ypcrts closed 4 years ago

ypcrts commented 4 years ago

fqdn should accept hyphen as the last octet when label length is greater than 1 per RFC 1035 s. 2.3.1 Preferred Name.

ypcrts commented 4 years ago

No, this is invalid. I was confused my chromium/djb source which accepts hyphens in the final position.

https://github.com/ypcrts/fqdn/issues/14#issuecomment-688604160