geoip-functions.pl: Export variables.

This easily allows to use them in other perl script.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-12-08 18:10:12 +01:00
parent 6fd1d4fa23
commit 9b2594d8e6

View File

@@ -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.