From 1ed8aedfdb9af8deaafac797b85b68c407feb6d7 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 15 Mar 2015 11:41:50 +0100 Subject: [PATCH] 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. --- html/cgi-bin/fwhosts.cgi | 3 +++ 1 file changed, 3 insertions(+) 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'){ -- 2.39.5