summaryrefslogtreecommitdiffstats
path: root/web/attachments/160369-check_ntp-fqdn.patch
blob: b20a702c318c2e0ac4784e8a202951e075412ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
--- check_ntp.pl.orig	2005-12-19 13:34:41.000000000 +0100
+++ check_ntp.pl	2005-12-19 13:43:49.000000000 +0100
@@ -112,7 +112,7 @@
 }
 
 $opt_H = shift unless ($opt_H);
-my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/);
+my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+([a-zA-Z][-a-zA-Z0-9\.]+)*)$/);
 unless ($host) {
 	print "No target host specified\n";
 	print_usage();