mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 13:32:59 +02:00
general-functions.pl: Do not check IPsec subnets for VTI/GRE connections
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -529,7 +529,7 @@ sub checksubnets
|
||||
if($ownnet ne 'ipsec'){
|
||||
&General::readhasharray("${General::swroot}/vpn/config", \%ipsecconf);
|
||||
foreach my $key (keys %ipsecconf){
|
||||
if ($ipsecconf{$key}[11] ne ''){
|
||||
if ($ipsecconf{$key}[11] ne '' && $ipsecconf{$key}[36] eq ""){
|
||||
foreach my $ipsecsubitem (split(/\|/, $ipsecconf{$key}[11])) {
|
||||
my ($ipsecip,$ipsecsub) = split (/\//, $ipsecconf{$key}[11]);
|
||||
$ipsecsub=&iporsubtodec($ipsecsub);
|
||||
|
||||
Reference in New Issue
Block a user