ygrek / mldonkey

cross-platform multi-network p2p daemon (previously at http://mldonkey.sourceforge.net/)
Other
240 stars 45 forks source link

Add support to GeoLite2 #38

Open ogarcia opened 4 years ago

ogarcia commented 4 years ago

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.

lulol commented 4 years ago

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.

ogarcia commented 4 years ago

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