From 38a8d40142ce2e5a270c331353c68760d0d74b23 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 10 Jun 2020 21:28:16 +0200 Subject: [PATCH] Revert "firewall/rules.pl: Only try to export locations if needed." This reverts commit 693b8513df290cbe4ee2fe3927ee029081fd2323. --- config/firewall/rules.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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"){ -- 2.39.5