Limit domains to 255 octets.

This commit is contained in:
Blake Griffith
2016-06-17 18:59:33 -05:00
parent 2625daad75
commit a148d2ddfa
+1 -1
View File
@@ -431,7 +431,7 @@ def enforce_domain_sanity(domain):
for l in labels:
if not 0 < len(l) < 64:
raise errors.ConfigurationError(msg + "label {0} is too long.".format(l))
if len(domain) > 256:
if len(domain) > 255:
raise errors.ConfigurationError(msg + "it is too long.")
return domain