mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
guardian.cgi: Allways read-in settings.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -249,12 +249,10 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) {
|
|||||||
|
|
||||||
# Call helper to flush iptables chain from guardian.
|
# Call helper to flush iptables chain from guardian.
|
||||||
system("/usr/local/bin/guardianctrl flush-chain &>/dev/null");
|
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.
|
# Call functions to generate whole page.
|
||||||
&showMainBox();
|
&showMainBox();
|
||||||
|
|||||||
Reference in New Issue
Block a user