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.
This commit is contained in:
Stefan Schantl
2015-03-15 11:41:50 +01:00
parent 0bb4b135d1
commit 1ed8aedfdb

View File

@@ -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'){