mldonkey icon indicating copy to clipboard operation
mldonkey copied to clipboard

Add support to GeoLite2

Open ogarcia opened this issue 4 years ago • 2 comments

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.

ogarcia avatar Nov 16 '19 11:11 ogarcia

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 avatar Nov 21 '19 17:11 lulol

@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.

ogarcia avatar Dec 07 '19 13:12 ogarcia