diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-12-20 16:42:33 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-12-20 16:42:33 -0800 |
commit | 9f2e2dea5f8d84872ed92b4a974ff588f2f71c91 (patch) | |
tree | a007775dcca05d2047045ed8f2a04b7536b046a4 /scripts | |
parent | 2b188e0c9ca392a7c54f4169378e523c355873c1 (diff) | |
download | vyatta-cfg-vpn-9f2e2dea5f8d84872ed92b4a974ff588f2f71c91.tar.gz vyatta-cfg-vpn-9f2e2dea5f8d84872ed92b4a974ff588f2f71c91.zip |
- Fix call to isIPinInterfaces().
- Add .gitignore
- Remove Changelog
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vpn-config.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl index 0e8f5fa..bc64de3 100755 --- a/scripts/vpn-config.pl +++ b/scripts/vpn-config.pl @@ -218,7 +218,6 @@ if ($vcVPN->exists('.')) { # Interfaces # my @interfaces = $vcVPN->returnValues('ipsec ipsec-interfaces interface'); - my %vpn_interfaces = map { $_ => 1 } @interfaces; if (@interfaces == 0) { $error = 1; print STDERR "VPN configuration error. No IPSEC interfaces specified.\n"; @@ -352,7 +351,7 @@ if ($vcVPN->exists('.')) { print STDERR "VPN configuration error. No local IP specified for peer \"$peer\"\n"; } else { use VyattaMisc; - if (!VyattaMisc::isIPinInterfaces($vc, \%vpn_interfaces, $lip)) { + if (!VyattaMisc::isIPinInterfaces($vc, $lip, @interfaces)) { # Due to Bug 2411, the quick short-term fix # as described in comment #4, is to assume |