mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
committed by
Michael Tremer
parent
bc6257f490
commit
d894ef3615
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user