mldonkey
mldonkey copied to clipboard
Add support to GeoLite2
The GeoLite databases was discontinued and now mldonkey gives the following error at startup:
[HTTPcl] 404: Not found for: http://www.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
May be interesting update support for GeoLite to GeoLite2.
That would be nice, even if it delays the new release ygrek just recently promised. :wink:
Meanwhile you could use the GeoIP Legacy Databases (DAT), which are in the compatible legacy dat format used by MLDonkey, directly converted from the original Maxmind's GeoLite2 Free downloadable mmds.
Also it's possible to create your own as pointed out here.
@lulol your solution works great, but this opens another bug in web_infos. If I configure the download url (https://dl.miyuru.lk/geoip/maxmind/country/maxmind4.dat.gz) directly as geoip.dat
, mldonkey is not able to use it. I think that this behavior is caused because the name of file is hardcoded and must be GeoIP.dat.gz
. If I download file by hand an put it in web_infos directory as GeoIP.dat.gz
works like a charm.