mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 01:38:25 +02:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user