]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
firewall: Fix colouring when IPsec VPN subnets are denoted in CIDR.
authorAlexander Marx <amarx@ipfire.org>
Mon, 6 Jan 2014 12:23:48 +0000 (13:23 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Jan 2014 13:16:53 +0000 (14:16 +0100)
html/cgi-bin/firewall.cgi

index b313d4bb24b4e7652ceae41c2554f4aa8b8bb148..e7884ca2724906a17819e19ff21694290742f64d 100755 (executable)
@@ -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;