From edad13b46b864150f49dcb42580a4ebcf35ca3f0 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 14 Feb 2022 19:42:52 +0100 Subject: [PATCH] update-location-database: Export database to ipset compatible format now. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schantl Reviewed-by: Peter Müller Reviewed-by: Michael Tremer --- src/scripts/update-location-database | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5