]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
rules.pl: Drop old code to load a blocklist
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 17:09:46 +0000 (19:09 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 3 Mar 2024 11:56:03 +0000 (12:56 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/firewall/rules.pl

index ff1378a74f24c0e1b195e00333d238765f708e53..d8c2702298af0851bbabad5d96fd79a50c3090f3 100644 (file)
@@ -1071,26 +1071,6 @@ sub ipset_restore ($) {
                        # If the set is not loaded, we have to rename it to proper use it.
                        run("$IPSET rename $loc_set $set");
                }
-
-       # Check if the given set name is a blocklist.
-       } elsif ($set ~~ @blocklists) {
-               # IPblocklist sets contains v4 as setname extension.
-               my $set_name = "$set" . "v4";
-
-               # Get the database file for the given blocklist.
-               my $db_file = &IPblocklist::get_ipset_db_file($set);
-
-               # Call function to restore/load the set.
-               &ipset_call_restore($db_file);
-
-               # Check if the set is already loaded (has been used before).
-               if ($set ~~ @ipset_used_sets) {
-                       # Swap the sets.
-                       run("$IPSET swap $set_name $set");
-               } else {
-                       # Rename the set to proper use it.
-                       run("$IPSET rename $set_name $set");
-               }
        }
 }