]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
fix GeoIP lookup in showrequestfromcountry.dat
authorPeter Müller <peter.mueller@link38.eu>
Sun, 7 Jan 2018 12:52:11 +0000 (13:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Jan 2018 19:17:11 +0000 (19:17 +0000)
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>
html/cgi-bin/logs.cgi/showrequestfromcountry.dat

index 605873ac00ce7ca965750582b0264d118aa3cde9..69835370b154acdaf8676bbd28640726497e70d4 100644 (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 = '';