]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/cfgroot/location-functions.pl
geoip-locations.pl: Rework method to grab and handling GeoIP locations.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 5 Dec 2019 14:50:56 +0000 (15:50 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 6 Dec 2019 12:58:20 +0000 (13:58 +0100)
commite34dbea7474bdd4b34c4551d3704c8b9d6402622
tree0097faf9352e794850919b774d39e66ccd856f7b
parent45b32f4dcf48e736db032579d5a35bed1da53696
geoip-locations.pl: Rework method to grab and handling GeoIP locations.

Now directly get the locations which are part of ISO 3166 from the perl
Locale::Country module. In case it is not listed there grab the country
code and location name from a hash.

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