logs.cgi/showrequrestfromcountry.dat: Use new location lookup method.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-12-06 14:42:09 +01:00
parent 9288b11011
commit 95bb1a5c95

View 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 = '';