]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Revert "firewall/rules.pl: Only try to export locations if needed."
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 10 Jun 2020 19:28:16 +0000 (21:28 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 10 Jun 2020 19:28:16 +0000 (21:28 +0200)
This reverts commit 693b8513df290cbe4ee2fe3927ee029081fd2323.

config/firewall/rules.pl

index 40a2632005ceb09f238cd6b7e614463b2634ca74..26453b5792aa6272e3d5d35df1061583514478d3 100644 (file)
@@ -110,11 +110,8 @@ sub main {
        # Flush exported locations.
        &GeoIP::flush_exported_locations();
 
-       # Check if there are any locations to export.
-       if (@locations_to_export) {
-               # Export required locations.
-               &GeoIP::export_locations(\@locations_to_export);
-       }
+       # Export required locations.
+       &GeoIP::export_locations(\@locations_to_export);
 
        # Prepare firewall rules.
        if (! -z  "${General::swroot}/firewall/input"){