From: Stefan Schantl Date: Wed, 10 Jun 2020 19:28:16 +0000 (+0200) Subject: Revert "firewall/rules.pl: Only try to export locations if needed." X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38a8d40142ce2e5a270c331353c68760d0d74b23;p=people%2Fstevee%2Fipfire-2.x.git Revert "firewall/rules.pl: Only try to export locations if needed." This reverts commit 693b8513df290cbe4ee2fe3927ee029081fd2323. --- diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 40a2632005..26453b5792 100644 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -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"){