From: Arjen de Korte <suse+build@de-korte.org>
>> We may have geo database outdated, MirrorCache has a route to check that:
>> http://mirrorcache.opensuse.org/rest/myip
> That puts my (static) IP in Moldova instead of The Netherlands, so I
> assume the GeoIP database used is somewhat outdated. Which brings me
I've replied privately to address this.
> to the request that it would be really nice to be able to override the
> GeoIP location by setting an environment variable in case the location
> is really far off.
That is probably question for zypper team, I will try to follow up.
E.g. for direct MirrorCache (or MirrorBrain) requests you can overwrite IP with X-Forwarded-For header, e.g.:
curl -H 'X-Forwarded-For: 142.250.185.206' http://mirrorcache.opensuse.org/rest/myip
{"country":"US","ip":"142.250.185.206","region":"NA"}
Regards,
Andrii Nikitin