From: Stefan Schantl Date: Sun, 15 Mar 2015 10:41:50 +0000 (+0100) Subject: fwhosts.cgi: Fix fw-reload detection when adding new entries to a geoip group. X-Git-Tag: v2.17-core91~128^2~6^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ed8aedfdb9af8deaafac797b85b68c407feb6d7;p=people%2Fstevee%2Fipfire-2.x.git fwhosts.cgi: Fix fw-reload detection when adding new entries to a geoip group. Read-in firewall config files for detection if the current group is used by at least one firewall rule and mark the firewall to need a reload if neccessary. Fixes #10771. --- diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index 8aedd8a22c..994a50a104 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -685,6 +685,9 @@ if ($fwhostsettings{'ACTION'} eq 'savegeoipgrp') my @target; my @newgrp; &General::readhasharray("$configgeoipgrp", \%customgeoipgrp); + &General::readhasharray("$fwconfigfwd", \%fwfwd); + &General::readhasharray("$fwconfiginp", \%fwinp); + &General::readhasharray("$fwconfigout", \%fwout); # Check for existing group name. if (!&checkgroup($grp) && $fwhostsettings{'update'} ne 'on'){