diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-06-02 19:50:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 19:50:35 +0300 |
commit | 2398c74783b38fd3d72d502583a126173abab0ab (patch) | |
tree | 45589ef41e2e860889152b62bb52de319fe85ff3 | |
parent | 3d7de495cc6b67ab1870ac9e66f1690fd17a2be4 (diff) | |
parent | 0b8c775a011ba7acf7a090ac54df165dd1b85062 (diff) |
Merge pull request #941 from iain-cuthbertson-siftware/bugfix/allow-mixed-case-hostnames
Adds uppercase option to the hostname validation regex
-rw-r--r-- | include/tests_networking | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_networking b/include/tests_networking index 83a7aae0..420f26ea 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -70,7 +70,7 @@ LogText "Result: hostnamed is defined and not longer than 63 characters" fi # Test valid characters (normally a dot should not be in the name, but we can't be 100% sure we have short name) - FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[a-z0-9\.\-]') + FIND=$(echo "${HOSTNAME}" | ${TRBINARY} -d '[a-zA-Z0-9\.\-]') if [ -z "${FIND}" ]; then LogText "Result: good, no unexpected characters discovered in hostname" if IsVerbose; then Display --indent 2 --text "- Hostname (allowed characters)" --result "${STATUS_OK}" --color GREEN; fi |