From: Michael Tremer Date: Tue, 19 Mar 2024 10:45:41 +0000 (+0000) Subject: importer: Permit Geofeeds for everything instead of ignoring X-Git-Tag: 0.9.18~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=970d9ada7ee9292667cc9d28643c8a7a25f28add;p=location%2Flibloc.git 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 --- 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)