mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
firewall: Fix colouring when IPsec VPN subnets are denoted in CIDR.
This commit is contained in:
committed by
Michael Tremer
parent
73cb6627fc
commit
95e9415ada
@@ -1351,6 +1351,7 @@ sub getcolor
|
||||
#Check if IP is part of a IPsec N2N network
|
||||
foreach my $key (sort keys %ipsecconf){
|
||||
my ($a,$b) = split("/",$ipsecconf{$key}[11]);
|
||||
$b=&General::iporsubtodec($b);
|
||||
if (&General::IpInSubnet($c,$a,$b)){
|
||||
$tdcolor="style='background-color: $Header::colourvpn;color:white;'";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user