# <-----
my $res=$TmpDomainLookup{$_[0]}||'';
if (! $res) {
- ($res,undef)=$gi->LookUp($_[0]); if ($res !~ /\w\w/) { $res='ip'; }
+ ($res,undef)=$gi->LookUp($_[0]);
+ if ($res !~ /\w\w/) { $res='ip'; }
+ else { $res=lc($res); }
$TmpDomainLookup{$_[0]}=$res;
if ($Debug) { debug(" GetCountryCodeByName for $_[0]: $res",5); }
}
# <-----
my $res=$TmpDomainLookup{$_[0]}||'';
if (! $res) {
- ($res,undef)=$gi->LookUp($_[0]); if ($res !~ /\w\w/) { $res='ip'; }
+ ($res,undef)=$gi->LookUp($_[0]);
+ if ($res !~ /\w\w/) { $res='ip'; }
+ else { $res=lc($res); }
$TmpDomainLookup{$_[0]}=$res;
if ($Debug) { debug(" GetCountryCodeByAddr for $_[0]: $res",5); }
}