mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
logs.cgi/showrequrestfromcountry.dat: Use new location lookup method.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -352,7 +352,7 @@ foreach $_ (@slice)
|
||||
if($iface eq $country || $srcaddr ne '') {
|
||||
my $ccode='';
|
||||
if($iface ne $country) {
|
||||
$ccode = &GeoIP::lookup($srcaddr);
|
||||
$ccode = &GeoIP::lookup_country_code($libloc_db_handle, $srcaddr);
|
||||
}
|
||||
if($iface eq $country || $ccode eq uc($country)) {
|
||||
my $chain = '';
|
||||
|
||||
Reference in New Issue
Block a user