mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
Limit domains to 255 octets.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user