fix GeoIP lookup in showrequestfromcountry.dat

This issue was caused by the rewrite of the perl GeoIP
library.

Fixes #11571.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Tested-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Peter Müller
2018-01-07 13:52:11 +01:00
committed by Michael Tremer
parent bc6257f490
commit d894ef3615

View File

@@ -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 = '';