mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
firewall/rules.pl: Only try to export locations if needed.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -110,8 +110,11 @@ sub main {
|
||||
# Flush exported locations.
|
||||
&GeoIP::flush_exported_locations();
|
||||
|
||||
# Export required locations.
|
||||
&GeoIP::export_locations(\@locations_to_export);
|
||||
# Check if there are any locations to export.
|
||||
if (@locations_to_export) {
|
||||
# Export required locations.
|
||||
&GeoIP::export_locations(\@locations_to_export);
|
||||
}
|
||||
|
||||
# Prepare firewall rules.
|
||||
if (! -z "${General::swroot}/firewall/input"){
|
||||
|
||||
Reference in New Issue
Block a user