Arjen de Korte wrote:
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.
Yeah, that's not nice. We (openSUSE) are entirely dependent on 3rd parties supplying quality geoip data. "a few years ago", I can well accept the quality of IPv6 geo-location data may have been less than desired.
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.
There is in fact a CURLOPT_HTTPHEADER, but I haven't tried it.
But it has been fixed in the meantime by loading a newer GeoIP database. Which is the problem with many GeoIP services: stale databases.
Well, ours is supposed to be refreshed every Monday, but see issue#89566 -- Per Jessen, Zürich (4.5°C) Member, openSUSE Heroes