mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
general-functions.pl: do not miscalculate when enumerating IPsec N2N subnet membership
Fixes: #11235 Cc: Alexander Marx <alexander.marx@ipfire.org> Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
4bf13a6a47
commit
db4e10a6ec
@@ -601,7 +601,7 @@ sub checksubnets
|
||||
foreach my $key (keys %ipsecconf){
|
||||
if ($ipsecconf{$key}[11] ne '' && $ipsecconf{$key}[36] eq ""){
|
||||
foreach my $ipsecsubitem (split(/\|/, $ipsecconf{$key}[11])) {
|
||||
my ($ipsecip,$ipsecsub) = split (/\//, $ipsecconf{$key}[11]);
|
||||
my ($ipsecip,$ipsecsub) = split (/\//, $ipsecsubitem);
|
||||
$ipsecsub=&iporsubtodec($ipsecsub);
|
||||
if($ipsecconf{$key}[1] ne $ccdname){
|
||||
if ( &IpInSubnet ($ip,$ipsecip,$ipsecsub) ){
|
||||
|
||||
Reference in New Issue
Block a user