guardian.cgi: Allways read-in settings.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2014-11-01 13:42:53 +01:00
parent c973d6da10
commit 36dbcf2e43

View File

@@ -249,12 +249,10 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) {
# Call helper to flush iptables chain from guardian.
system("/usr/local/bin/guardianctrl flush-chain &>/dev/null");
} else {
# Load settings from file.
&General::readhash("${General::swroot}/guardian/settings", \%settings);
}
# Load settings from file.
&General::readhash("${General::swroot}/guardian/settings", \%settings);
# Call functions to generate whole page.
&showMainBox();