diff options
author | Mike Fulbright <msf@redhat.com> | 2003-08-12 21:04:16 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-08-12 21:04:16 +0000 |
commit | 53b64223cb09cc9d5d507b6ed1aa5170e8e67ce5 (patch) | |
tree | aa56eb86a911f1e604a2f7110c0badf9aff945b0 | |
parent | 2beb8e4386031450fcb28042b5b81631f23665a5 (diff) | |
download | anaconda-53b64223cb09cc9d5d507b6ed1aa5170e8e67ce5.tar.gz anaconda-53b64223cb09cc9d5d507b6ed1aa5170e8e67ce5.tar.xz anaconda-53b64223cb09cc9d5d507b6ed1aa5170e8e67ce5.zip |
add length check for hostname
-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'") |