summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system/vyatta_update_ntp.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/system/vyatta_update_ntp.pl b/scripts/system/vyatta_update_ntp.pl
index 118cfc18..2f9b29f1 100755
--- a/scripts/system/vyatta_update_ntp.pl
+++ b/scripts/system/vyatta_update_ntp.pl
@@ -26,9 +26,9 @@ use NetAddr::IP;
die "$0 expects no arguments\n" if (@ARGV);
sub ntp_format {
- my ($cidr) = @_;
- my $ip = NetAddr::IP->new($cidr);
- die "$cidr: not a valid IP address" unless $ip;
+ my ($cidr_or_host) = @_;
+ my $ip = NetAddr::IP->new($cidr_or_host);
+ die "$cidr_or_host: not a valid IP address" unless $ip;
my $address = $ip->addr();
my $mask = $ip->mask();