Re: RFC: countrychooser and IP location
On Sun, Sep 10, 2006 at 02:03:08PM -0400, Joey Hess wrote:
> Robert Millan wrote:
> > +iplocated_country=`wget -q http://api.hostip.info/country.php -O - | head -c 2`
> This is a third-party point of failure. Altough your code does
> gracefully degrade if it fails. Would Debian be able to run this service
> itself if we decided to use this? Or would that be a bad idea? Just
I was expecting that, if you like the idea, DSA would agree to put it in an URL
that is controlled by the Debian project. This URL could be an HTTP redirection
or a full copy of the database (hostip.info is a community-maintained project
and seem to provide rsync access to their mysql).
Besides, I don't think it's polite to make every Debian install probe that site.
We don't know if they're prepared to handle the load ;)
> Anyway, I rather like the idea of doing IP location, but I lean more
> toward only using the info to override the user's country in mirror
> selection, rather than overriding the whole countrychooser. For one
> thing, it wouldn't need to ask the user an insulting question ("do you
> know what country you're in?") if the iplocated country was only used to
> change the default mirror.
Ok. So choose-mirror is the place to do it?
> Another reason is that physical country and network-connected country
> arn't necessarily the same; I might do a remote install in another
> country, and tell it I'm in the US, since I want all the US defaults --
> but I'd still prefer to use the iplocated country for mirror then.
Or you could be travelling..
My spam trap is email@example.com. Note: this address is only intended for
spam harvesters. Writing to it will get you added to my black list.