From 9b2594d8e6493079cf3a80f1d433e0b06a030fe5 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 8 Dec 2019 18:10:12 +0100 Subject: [PATCH] geoip-functions.pl: Export variables. This easily allows to use them in other perl script. Signed-off-by: Stefan Schantl --- config/cfgroot/geoip-functions.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/cfgroot/geoip-functions.pl b/config/cfgroot/geoip-functions.pl index c8b3c5e704..7fbd5eedee 100644 --- a/config/cfgroot/geoip-functions.pl +++ b/config/cfgroot/geoip-functions.pl @@ -41,13 +41,16 @@ my %not_iso_3166_location = ( ); # Directory where the libloc database and keyfile lives. -my $location_dir = "/usr/share/location/"; +our $location_dir = "/usr/share/location/"; # Libloc database file. -my $database = "$location_dir/database.db"; +our $database = "$location_dir/database.db"; # Libloc keyfile to verify the database. -my $keyfile = "$location_dir/signing-key.pem"; +our $keyfile = "$location_dir/signing-key.pem"; + +# Directory which contains the exported databases. +our $xt_geoip_db_directory = "/usr/share/xt_geoip/"; # ## Tiny function to init the location database. -- 2.39.5