firewall: Fix colouring when IPsec VPN subnets are denoted in CIDR.

This commit is contained in:
Alexander Marx
2014-01-06 13:23:48 +01:00
committed by Michael Tremer
parent 73cb6627fc
commit 95e9415ada

View File

@@ -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;