[3/3] rules.pl: Prevent from cleanup the IPSWHITELIST set.
Commit Message
Init the IPSWHITELIST set as loaded to prevent from destroying
during cleanup.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
config/firewall/rules.pl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@@ -73,7 +73,10 @@ my %confignatfw=();
my %locationsettings = (
"LOCATIONBLOCK_ENABLED" => "off"
);
-my %ipset_loaded_sets = ();
+my %ipset_loaded_sets = (
+ "IPSWHITELIST" => "1",
+);
+
my @ipset_used_sets = ();
my $configfwdfw = "${General::swroot}/firewall/config";