]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
fwhosts.cgi: Fix fw-reload detection when adding new entries to a geoip group.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 15 Mar 2015 10:41:50 +0000 (11:41 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 15 Mar 2015 10:41:50 +0000 (11:41 +0100)
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

index 8aedd8a22c49236d7a0faead5cef00ea9e65f1e5..994a50a1048c581a7259c20de4e578d59af0b62e 100644 (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'){