From 30944296c478d5d6cec82d8e7c7a62b60deb4fb4 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 27 Mar 2016 13:24:42 +0200 Subject: [PATCH] GEOIP_STANDARD variable is not valid anymore. --- lib/NDWeb/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 4aa6d95..bc422a6 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -46,7 +46,7 @@ sub login : Local { my ($self, $c) = @_; if ($c->login){ - my $gi = Geo::IP->new(GEOIP_STANDARD); + my $gi = Geo::IP->new("/usr/share/GeoIP/GeoIP.dat"); my $country = $gi->country_code_by_addr($c->req->address) || '??'; my $remember = 0; -- 2.39.2