From: Stefan Schantl Date: Mon, 14 Feb 2022 18:42:52 +0000 (+0100) Subject: update-location-database: Export database to ipset compatible format now. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edad13b46b864150f49dcb42580a4ebcf35ca3f0;p=people%2Fms%2Fipfire-2.x.git update-location-database: Export database to ipset compatible format now. Signed-off-by: Stefan Schantl Reviewed-by: Peter Müller Reviewed-by: Michael Tremer --- diff --git a/src/scripts/update-location-database b/src/scripts/update-location-database index 06b22d101c..d41a0a947b 100644 --- a/src/scripts/update-location-database +++ b/src/scripts/update-location-database @@ -42,8 +42,8 @@ fi # Get the latest location database from server. if /usr/bin/location update --cron=$UPDATE_INTERVAL; then - # Call location and export all countries in xt_geoip compatible format. - if /usr/bin/location export --directory=/usr/share/xt_geoip --family=ipv4 --format=xt_geoip; then + # Call location and export all countries in an ipset compatible format. + if /usr/bin/location export --directory=/var/lib/location/ipset --family=ipv4 --format=ipset; then # Call initscript to reload the firewall. /etc/init.d/firewall reload