From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: Re: [PATCH] fix GeoIP lookup in showrequestfromcountry.dat Date: Sun, 07 Jan 2018 14:17:42 +0100 Message-ID: <9f2e0491-82fa-8b06-df82-85948d459599@ipfire.org> In-Reply-To: <20180107135211.48b6848f.peter.mueller@link38.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6473506380130175836==" List-Id: --===============6473506380130175836== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, On 07.01.2018 13:52, Peter M=C3=BCller wrote: > This issue was caused by the rewrite of the perl GeoIP > library. >=20 > Fixes #11571. Tested. Works. Thanks! ;-) That was fast... Best, Matthias > Signed-off-by: Peter M=C3=BCller > --- > html/cgi-bin/logs.cgi/showrequestfromcountry.dat | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/html/cgi-bin/logs.cgi/showrequestfromcountry.dat b/html/cgi-bi= n/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 --===============6473506380130175836==--