From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] fix GeoIP lookup in showrequestfromcountry.dat
Date: Sun, 07 Jan 2018 14:17:42 +0100 [thread overview]
Message-ID: <9f2e0491-82fa-8b06-df82-85948d459599@ipfire.org> (raw)
In-Reply-To: <20180107135211.48b6848f.peter.mueller@link38.eu>
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
Hi,
On 07.01.2018 13:52, Peter Müller wrote:
> This issue was caused by the rewrite of the perl GeoIP
> library.
>
> Fixes #11571.
Tested. Works. Thanks! ;-)
That was fast...
Best,
Matthias
> Signed-off-by: Peter Müller <peter.mueller(a)link38.eu>
> ---
> 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='';
> if($iface ne $country) {
> - $ccode = $gi->country_code_by_name($srcaddr);
> + $ccode = &GeoIP::lookup($srcaddr);
> }
> if($iface eq $country || $ccode eq uc($country)) {
> my $chain = '';
>
prev parent reply other threads:[~2018-01-07 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-07 12:52 Peter Müller
2018-01-07 13:17 ` Matthias Fischer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f2e0491-82fa-8b06-df82-85948d459599@ipfire.org \
--to=matthias.fischer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox