summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ab0bfc)
raw | patch | inline | side by side (parent: 6ab0bfc)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 19 Oct 2006 18:44:53 +0000 (18:44 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Thu, 19 Oct 2006 18:44:53 +0000 (18:44 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1501 f882894a-f735-0410-b71e-b25c423dba1c
THANKS.in | patch | blob | history | |
plugins-scripts/utils.pm.in | patch | blob | history |
diff --git a/THANKS.in b/THANKS.in
index 5bc52088ef05eb49b48f37c2b9fa6b3be59d2203..8bf650792bd6ae4bc0a23df08eeb6e4313bca13a 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Mike Emigh
Christian Mies
Andreas Behal
+O'Shaughnessy Evans
index 028241d4383d90ee3b37d069a587bde425d70de3..d4dddae990d4aee1b3977aa952bbc715d32f56a8 100644 (file)
# $Id$
#
# $Log$
+# Revision 1.9 2006/10/19 18:44:53 tonvoon
+# Allow hostnames beginning with digits (O'Shaughnessy Evans - 1567390)
+#
# Revision 1.8 2006/06/07 14:23:12 seanius
# removed stale references to PATH_TO_NTPFOO, as it's no longer used.
#
sub is_hostname {
my $host1 = shift;
- if ($host1 && $host1 =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/) {
+ if ($host1 && $host1 =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*)$/) {
return 1;
}else{
return 0;