aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/utils.pm.in
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-12-12 08:56:01 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-12-12 08:56:01 +0000
commitfc6caed01ca286e40d0177d68aae5497c52bf61d (patch)
tree5c8f53f21f906ace68ea9c18bd03ff116ee8e12e /plugins-scripts/utils.pm.in
parent8f253be7a4ae29a017566cc6cef01085a0d10d56 (diff)
downloadmonitoring-plugins-fc6caed01ca286e40d0177d68aae5497c52bf61d.tar.gz
Allow single characters in fqdn (Dave Alden)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1548 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts/utils.pm.in')
-rw-r--r--plugins-scripts/utils.pm.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/utils.pm.in b/plugins-scripts/utils.pm.in
index 8449b544..d68f3090 100644
--- a/plugins-scripts/utils.pm.in
+++ b/plugins-scripts/utils.pm.in
@@ -60,7 +60,7 @@ sub is_hostname {
} else {
return 0;
}
- } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.?$/) {
+ } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]*(\.[a-zA-Z0-9][-a-zA-Z0-9]*)*\.?$/) {
return 1;
} else {
return 0;