]> git.ipfire.org Git - location/libloc.git/commitdiff
importer: Permit Geofeeds for everything instead of ignoring
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Mar 2024 10:45:41 +0000 (10:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Mar 2024 10:45:41 +0000 (10:45 +0000)
This seems to become the default and so we should avoid making the
overrides file too verbose.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index 34f4f05c565f92eb317e75f6bdb5ade2efd8a3e3..edd73868ddd1f6055b22af62a37fc5324e651a32 100644 (file)
@@ -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)