]> ruin.nu Git - ndwebbie.git/commitdiff
GEOIP_STANDARD variable is not valid anymore.
authorMichael Andreen <harv@ruin.nu>
Sun, 27 Mar 2016 11:24:42 +0000 (13:24 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 27 Mar 2016 11:24:42 +0000 (13:24 +0200)
lib/NDWeb/Controller/Root.pm

index 4aa6d9557dd2100ce52003bc8718424c0d23b661..bc422a6fcd6619b331bb206a45e9951624f6efa8 100644 (file)
@@ -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;