From 95bb1a5c95ff0cc59974225bb58a013109c6e15b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 6 Dec 2019 14:42:09 +0100 Subject: [PATCH] logs.cgi/showrequrestfromcountry.dat: Use new location lookup method. Signed-off-by: Stefan Schantl --- html/cgi-bin/logs.cgi/showrequestfromcountry.dat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/logs.cgi/showrequestfromcountry.dat b/html/cgi-bin/logs.cgi/showrequestfromcountry.dat index 2754830752..2af0ec9dcc 100644 --- a/html/cgi-bin/logs.cgi/showrequestfromcountry.dat +++ b/html/cgi-bin/logs.cgi/showrequestfromcountry.dat @@ -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 = ''; -- 2.39.5