From 95e9415ada2cd29399eec02c2748ca22792ec0a4 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 6 Jan 2014 13:23:48 +0100 Subject: [PATCH] firewall: Fix colouring when IPsec VPN subnets are denoted in CIDR. --- html/cgi-bin/firewall.cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index b313d4bb2..e7884ca27 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -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; -- 2.39.2