The actual proble is that Geo::IP->record_by_addr()

sub SectionProcessIp_geoip_city_maxmind {
.....
$record=$geoip_city_maxmind->record_by_addr($param) if $geoip_city_maxmind;
...
}

sometimes returns empty record while passed  ip address is correct.

WBR,
Alexey Bestchekov

On 1/13/06, Charles Fry <[EMAIL PROTECTED]> wrote:
Thank you for the patch. I'd love to pass it on to upstream, but first,
would you mind clarifying what the underlying problem is? I haven't
managed to fully understand it yet.

thanks,
Charles

-----Original Message-----
> From: proforg <[EMAIL PROTECTED]>
> Subject: Re: patch request
> Date: Fri, 13 Jan 2006 17:45:52 +0300
> To: Charles Fry < [EMAIL PROTECTED]>
>
> Hi !
> Something like this :
>
> /usr/share/awstats/plugins/geoip_city_maxmind.pm
>
> sub SectionProcessIp_geoip_city_maxmind {
>
> -- $city = $record->city
> ++ my $city;
> ++ if ($record) {
> ++        $city=$record->city
> ++    };
>
> But keep in mind - it just quik workaround, problem is probably more deeper.
>
> WBR,
> Alexey Bestchekov
>
>
> On 1/13/06, Charles Fry <[EMAIL PROTECTED] > wrote:
> >
> > Hi,
> >
> > You said previously:
> >
> >     "as for me i just added one more check as a quik workaround
> >     "if ($record) { $city = $record->city };"
> >
> > Could you please specify exactly where this line should go (a patch
> > would be helpful)?
> >
> > thanks,
> > Charles
> >
> > --
> > The answer to
> > A shaver's dream
> > A greaseless
> > No brush
> > Shaving cream
> > Burma-Shave
> > http://burma-shave.org/jingles/1934/the_answer_to
> >
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (GNU/Linux)
> >
> > iD8DBQFDxyDxhiAFUap5uRoRAhIxAKCCUs0jNzxS6fzNlWLd1Ez97/89AACgsEmg
> > 6ZKz1UnESPrnthTGjUXN9HM=
> > =XUOy
> > -----END PGP SIGNATURE-----
> >
> >
> >

--
From New York town
To Pumpkin Holler
Still
Half a pound
For half a dollar
Burma-Shave
No price increase
http://burma-shave.org/jingles/1948/from_new_york

Reply via email to