diff options
-rw-r--r-- | network.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/network.py b/network.py index 2eefdd5b1..50f5fdc8a 100644 --- a/network.py +++ b/network.py @@ -37,6 +37,9 @@ def sanityCheckHostname(hostname): if len(hostname) < 1: return None + if len(hostname) > 64: + return _("Hostname must be 64 or less characters in length.") + if not inStrRange(hostname[0], string.ascii_letters): return _("Hostname must start with a valid character in the range " "'a-z' or 'A-Z'") |