On a sunny day (Sat, 23 Jun 2018 20:18:00 +0100) it happened Dave
wrote in :
>On 23/06/18 08:20, Jan Panteltje wrote:
>
>> Last night I wrote a new version of ip_to_country,
>> need to see if I can make it faster using successive approximation in the
very very long IP list.
>> But it does work, finds most countries (all so far).
>> If people need it I can put what I have now on the website, ask here.
>> Work in progress.
>
>Can't you just use geoip?
>
>(untested) $ apt-get install geoip-bin geoip-database
>
>then use geoiplookup to find the country for an IP.
Probably, but sometimes I like to write code :-)
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|