]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
GEOIP_STANDARD variable is not valid anymore.
[ndwebbie.git] / 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;