diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-12-12 08:56:01 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-12-12 08:56:01 (GMT) |
commit | fc6caed01ca286e40d0177d68aae5497c52bf61d (patch) | |
tree | 5c8f53f21f906ace68ea9c18bd03ff116ee8e12e /plugins-scripts/utils.pm.in | |
parent | 8f253be7a4ae29a017566cc6cef01085a0d10d56 (diff) | |
download | monitoring-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.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/utils.pm.in b/plugins-scripts/utils.pm.in index 8449b54..d68f309 100644 --- a/plugins-scripts/utils.pm.in +++ b/plugins-scripts/utils.pm.in | |||
@@ -60,7 +60,7 @@ sub is_hostname { | |||
60 | } else { | 60 | } else { |
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |
63 | } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.?$/) { | 63 | } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]*(\.[a-zA-Z0-9][-a-zA-Z0-9]*)*\.?$/) { |
64 | return 1; | 64 | return 1; |
65 | } else { | 65 | } else { |
66 | return 0; | 66 | return 0; |