]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
geoip-functions.pl: Re-write code to lookup the iso country code of a given IP-address.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 10 Jan 2019 12:00:17 +0000 (13:00 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Jan 2019 01:21:48 +0000 (01:21 +0000)
commitff21ff90d24de0f648d24bb906c45738b81ce67a
tree6e8c603baedf18d2c2c9825d5fa006e806969c23
parent9d1708e081d7e7ba490db3620509dcce29cb0ae8
geoip-functions.pl: Re-write code to lookup the iso country code of a given IP-address.

Drop the usage of the old legacy GeoIP perl module which was not able to handle the
new GeoLite2 databases.

Write some code to directly access the databases and extract the required data.

Usage of the GeoIP2 perl module would provide a lot of more functionality which is not
used/needed. Unfortunately ir requires at lot of additional perl modules which are
not available on IPFire and would only be build and shipped for this module. Buildig all
of them will slow down the entire build process, mess up the system and requires a lot
more space on disk.

Fixes #11962.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/geoip-functions.pl