The GeoIP service was changed from ipapi.co/json to geoip.ubuntu.com/lookup in version 20.10 Groovy Gorilla.
The automirror module is a downstream module, which is still using the ipapi.co url and JSON parsing.
Todo:
- The imported Python module logging does not log to the Calamares session.log file. Replace it with the logging functionality from libcalamares.utils.
- It is not a good idea to use two different urls to do the lookup with two different parsing methods. Ideally, there is only one lookup and all the modules can use the result of this single lookup. This requires some upstream changes to consolidate the GeoIP lookup. Known modules which use GeoIP:
- automirror
- locale
- welcome