fix GeoIP lookup in showrequestfromcountry.dat
Commit Message
This issue was caused by the rewrite of the perl GeoIP
library.
Fixes #11571.
Signed-off-by: Peter Müller <peter.mueller@link38.eu>
---
html/cgi-bin/logs.cgi/showrequestfromcountry.dat | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
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@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 = '';
>
@@ -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 = '';