Package: geoip-bin
Version: 1.6.12-3
I believe there is an issue with data conversion in the
geolite2-to-legacy-csv.sh.
Checking the IP 5.62.22.12, which is in Australia, against the generated
data, it comes back as UK.
The source data comes back as Australia:
https://www.maxmind.com/en/geoip2-precision-demo
This third-party conversion comes back as Australia:
https://www.miyuru.lk/geoiplegacy
It seems the big if-elseif block in the script prefers the country
fields in the order "represented", "registered", and then "country".
For this block, "country" is correct, "registered" is not the desired
country, and "represented" is null.
Suggest that "country" is more accurate and should be preferred over
where the block is registered.