diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-vti-config.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-vti-config.pl b/scripts/vyatta-vti-config.pl index 23bead1..042ef3b 100755 --- a/scripts/vyatta-vti-config.pl +++ b/scripts/vyatta-vti-config.pl @@ -128,8 +128,8 @@ foreach my $peer (@peers) { exit -1; } - if ($lip eq "" || $lip eq "0.0.0.0") { - print STDERR "$vti_cfg_err Invalid local-address \"$lip\".\n"; + if (!(validateType('ipv4', $lip, 'quiet') || validateType('ipv6', $lip, 'quiet')) || ($lip eq '0.0.0.0')) { + print STDERR "$vti_cfg_err Invalid local-address \"$lip\", an ip address must be specified for VTIs.\n"; exit -1; } |