From: Alexander Marx Date: Wed, 7 May 2014 10:09:28 +0000 (+0200) Subject: Firewall: Fix slow generation of host table in firewall groups X-Git-Tag: v2.15-core77~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fa1b16e5d84108da9b218a28cb224961e523d35;p=ipfire-2.x.git Firewall: Fix slow generation of host table in firewall groups --- diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index c5e1c28452..eeb83ac127 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -1632,7 +1632,7 @@ sub getcolor } #Now check if IP is part of ORANGE,BLUE or GREEN - if ( &General::IpInSubnet($sip,$netsettings{'ORANGE_ADDRESS'},$netsettings{'ORANGE_NETMASK'})){ + if ( &Header::orange_used() && &General::IpInSubnet($sip,$netsettings{'ORANGE_ADDRESS'},$netsettings{'ORANGE_NETMASK'})){ $tdcolor="$c"; return $tdcolor; } @@ -1640,7 +1640,7 @@ sub getcolor $tdcolor="$c"; return $tdcolor; } - if ( &General::IpInSubnet($sip,$netsettings{'BLUE_ADDRESS'},$netsettings{'BLUE_NETMASK'})){ + if ( &Header::blue_used() && &General::IpInSubnet($sip,$netsettings{'BLUE_ADDRESS'},$netsettings{'BLUE_NETMASK'})){ $tdcolor="$c"; return $tdcolor; }