public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] fix GeoIP lookup in showrequestfromcountry.dat
@ 2018-01-07 12:52 Peter Müller
  2018-01-07 13:17 ` Matthias Fischer
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Müller @ 2018-01-07 12:52 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

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

Fixes #11571.

Signed-off-by: Peter Müller <peter.mueller(a)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 = '';
-- 
2.13.6



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-07 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-07 12:52 [PATCH] fix GeoIP lookup in showrequestfromcountry.dat Peter Müller
2018-01-07 13:17 ` Matthias Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox