]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
rules.pl: Prevent from cleanup the IPSWHITELIST set.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 6 Apr 2022 19:11:11 +0000 (21:11 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 6 Apr 2022 19:11:11 +0000 (21:11 +0200)
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

index 19dc7a6d15a247403b399f9591d303552313d12a..0591a47bea4f8d629278cada015c451ebda040b0 100644 (file)
@@ -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";