]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
logs.cgi/showrequrestfromcountry.dat: Use new location lookup method.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 6 Dec 2019 13:42:09 +0000 (14:42 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 6 Dec 2019 13:42:09 +0000 (14:42 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/logs.cgi/showrequestfromcountry.dat

index 2754830752a5dcbe084c0c29ebc0814338f45462..2af0ec9dcc73eccf58ed77a587089f2c618dc874 100644 (file)
@@ -352,7 +352,7 @@ foreach $_ (@slice)
        if($iface eq $country || $srcaddr ne '') {
                my $ccode='';
                if($iface ne $country) {
-                       $ccode = &GeoIP::lookup($srcaddr);
+                       $ccode = &GeoIP::lookup_country_code($libloc_db_handle, $srcaddr);
                }
                if($iface eq $country || $ccode eq uc($country)) {
                        my $chain = '';