From: manolamancha <> Date: Fri, 14 May 2010 19:02:54 +0000 (+0000) Subject: Fixed country_code_by_name (bug 3001718) X-Git-Tag: AWSTATS_7_0_BETA2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=457bc3cef4a2067df9fc84feed2e5f80fc052dbf;p=thirdparty%2FAWStats.git Fixed country_code_by_name (bug 3001718) --- diff --git a/wwwroot/cgi-bin/plugins/geoip.pm b/wwwroot/cgi-bin/plugins/geoip.pm index 342083fd..518f0dbb 100644 --- a/wwwroot/cgi-bin/plugins/geoip.pm +++ b/wwwroot/cgi-bin/plugins/geoip.pm @@ -186,7 +186,7 @@ sub ShowInfoHost_geoip { } if (! $key) { my $res = TmpLookup_geoip($param); - if (!$res){$res=lc($gi->country_code_by_addr($param)) if $gi;} + if (!$res){$res=lc($gi->country_code_by_name($param)) if $gi;} if ($Debug) { debug(" Plugin $PluginName: GetCountryByHostname for $param: [$res]",5); } if ($res) { print $DomainsHashIDLib{$res}?$DomainsHashIDLib{$res}:"$Message[0]"; } else { print "$Message[0]"; }