Subject: | country_code_by_addr will cause fatal error if running on localhost |
Running v1.27 on WinXP with ActivePerl 5.8.7, the country_code_by_addr method appears to cause a fatal error if I pass it the IP Address "127.0.0.1". For instance:
use Geo::IP;
my $gi = Geo::IP->new(GEOIP_STANDARD) or die;
my $country = $gi->country_code_by_addr('127.0.0.1') or die;
Returns "Died at tmp.pl line 3."
A relatively minor bug as most users won't be running their browser on the same machine as the web server, but mildly annoying if you're running a local copy of a site for development purposes.