]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed country_code_by_name (bug 3001718)
authormanolamancha <>
Fri, 14 May 2010 19:02:54 +0000 (19:02 +0000)
committermanolamancha <>
Fri, 14 May 2010 19:02:54 +0000 (19:02 +0000)
wwwroot/cgi-bin/plugins/geoip.pm

index 342083fdf67a82b69c232b7a05afd3be04b7deed..518f0dbbaf8802360a5ec8e03ac2b43840d42b81 100644 (file)
@@ -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}:"<span style=\"color: #$color_other\">$Message[0]</span>"; }
                    else { print "<span style=\"color: #$color_other\">$Message[0]</span>"; }