X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Flogs.cgi%2Fshowrequestfromcountry.dat;fp=html%2Fcgi-bin%2Flogs.cgi%2Fshowrequestfromcountry.dat;h=f81994f870ccdd658c22cb764240ee99cd5ad00f;hp=2a246ec60e9fbe5a7c5af804057796ed7bc99c9b;hb=5ae118858924b3ca909f907e9448350cc7089cc0;hpb=33d18031fde998ee38d3be2acf1cbe47338f2c90 diff --git a/html/cgi-bin/logs.cgi/showrequestfromcountry.dat b/html/cgi-bin/logs.cgi/showrequestfromcountry.dat index 2a246ec60e..f81994f870 100644 --- a/html/cgi-bin/logs.cgi/showrequestfromcountry.dat +++ b/html/cgi-bin/logs.cgi/showrequestfromcountry.dat @@ -218,7 +218,7 @@ if ($multifile) { # extract ipv4 and ipv6 address elsif (($_ =~ /SRC\=(([\d]{1,3})(\.([\d]{1,3})){3})/) or ($_ =~ /SRC\=(([0-9a-fA-F]{0,4})(\:([0-9a-fA-F]{0,4})){2,7})/)) { my $srcaddr=$1; - my $ccode = $gi->country_code_by_name($srcaddr); + my $ccode = &Location::Functions::lookup_country_code($srcaddr); if($ccode eq uc($country)){ # or srcaddr matches country code $log[$lines] = $_;