mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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.
|
# Flush exported locations.
|
||||||
&GeoIP::flush_exported_locations();
|
&GeoIP::flush_exported_locations();
|
||||||
|
|
||||||
# Export required locations.
|
# Check if there are any locations to export.
|
||||||
&GeoIP::export_locations(\@locations_to_export);
|
if (@locations_to_export) {
|
||||||
|
# Export required locations.
|
||||||
|
&GeoIP::export_locations(\@locations_to_export);
|
||||||
|
}
|
||||||
|
|
||||||
# Prepare firewall rules.
|
# Prepare firewall rules.
|
||||||
if (! -z "${General::swroot}/firewall/input"){
|
if (! -z "${General::swroot}/firewall/input"){
|
||||||
|
|||||||
Reference in New Issue
Block a user