From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] fix GeoIP lookup in showrequestfromcountry.dat Date: Sun, 07 Jan 2018 13:52:11 +0100 Message-ID: <20180107135211.48b6848f.peter.mueller@link38.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1658069005043241792==" List-Id: --===============1658069005043241792== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This issue was caused by the rewrite of the perl GeoIP library. Fixes #11571. Signed-off-by: Peter M=C3=BCller --- 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 605873ac0..69835370b 100644 --- a/html/cgi-bin/logs.cgi/showrequestfromcountry.dat +++ b/html/cgi-bin/logs.cgi/showrequestfromcountry.dat @@ -349,7 +349,7 @@ foreach $_ (@slice) if($iface eq $country || $srcaddr ne '') { my $ccode=3D''; if($iface ne $country) { - $ccode =3D $gi->country_code_by_name($srcaddr); + $ccode =3D &GeoIP::lookup($srcaddr); } if($iface eq $country || $ccode eq uc($country)) { my $chain =3D ''; --=20 2.13.6 --===============1658069005043241792==--