From 970d9ada7ee9292667cc9d28643c8a7a25f28add Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 19 Mar 2024 10:45:41 +0000 Subject: [PATCH] importer: Permit Geofeeds for everything instead of ignoring This seems to become the default and so we should avoid making the overrides file too verbose. Signed-off-by: Michael Tremer --- src/scripts/location-importer.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 34f4f05..edd7386 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -2099,10 +2099,12 @@ class CLI(object): networks.append(n) - # Log a warning if not networks have been permitted + # If no networks have been specified, permit for everything if not networks: - log.warning("Geofeed %s is not permitted for any networks. Ignoring." % url) - continue + networks = [ + ipaddress.ip_network("::/0"), + ipaddress.ip_network("0.0.0.0/0"), + ] # Check the URL url = self._check_geofeed_url(url) -- 2.47.3