diff options
author | Kim Hagen <khagen@multi-development.com> | 2014-09-10 18:02:24 +0200 |
---|---|---|
committer | Kim Hagen <khagen@multi-development.com> | 2014-09-10 18:02:24 +0200 |
commit | 8863b7efe68429ebcf2fd43a13c592ac33139415 (patch) | |
tree | 1713bacc36c69c14a2f7dd3af4bed4a5430b073f /scripts | |
parent | bcba0452f09f21eb0b3c13ab2fa3af4921fe1822 (diff) | |
download | vyos-nhrp-8863b7efe68429ebcf2fd43a13c592ac33139415.tar.gz vyos-nhrp-8863b7efe68429ebcf2fd43a13c592ac33139415.zip |
Fix typo and replace string content check with string defined check
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyos-update-nhrp.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl index 9b28c63..0134c71 100644 --- a/scripts/vyos-update-nhrp.pl +++ b/scripts/vyos-update-nhrp.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perlcd +#!/usr/bin/perl # # Module: vyos-update-nhrp.pl # @@ -105,7 +105,7 @@ sub configure_nhrp_tunnels { if (@nhrp_tunnels) { foreach my $nhrp_tunnel(@nhrp_tunnels) { if ($nhrp_tunnel ~~ @tunnels) { - if ($config_tun->returnValue("$nhrp_tunnel encapsulation") eq "gre" && $config_tun->returnValue("$nhrp_tunnel remote-ip") eq "") { + if ($config_tun->returnValue("$nhrp_tunnel encapsulation") eq "gre" && ! defined $config_tun->returnValue("$nhrp_tunnel remote-ip")) { my @conf_file = tunnel_config($nhrp_tunnel); open (my $fh,">>$conffile"); foreach (@conf_file) { |