Citeren Per Jessen <per@opensuse.org>:
Arjen de Korte wrote:
Citeren Andrii Nikitin <andrii.nikitin@suse.com>:
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 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.
In fact you can, but in the Netherlands you should hardly have an issue?
I wish that was true. A few years ago, 'zypper' would consistently locate my IPv6 address in the US. I only noticed this after a while because of the horrendous latency and terrible speed. I had to disable IPv6 before runnning updates.
zypper probably won't support this though, but never mind:
wget --header='X-Forwarded-For: 1.2.3.4,your.own.ip.addr" \ http://download.o.o/something/something/item.mirrorlist.
1.2.3.4 is the IP you wish to use instead of your own.
As far as I know, 'zypper' defaults to using '(lib)curl', so I doubt this will work. But it has been fixed in the meantime by loading a newer GeoIP database. Which is the problem with many GeoIP services: stale databases.