From: Michael Andreen Date: Sun, 27 Mar 2016 11:24:42 +0000 (+0200) Subject: GEOIP_STANDARD variable is not valid anymore. X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=30944296c478d5d6cec82d8e7c7a62b60deb4fb4 GEOIP_STANDARD variable is not valid anymore. --- 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;