Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download GeoIP.dat.gz over HTTPS #119

Open
RigacciOrg opened this issue Oct 22, 2024 · 7 comments
Open

Cannot download GeoIP.dat.gz over HTTPS #119

RigacciOrg opened this issue Oct 22, 2024 · 7 comments

Comments

@RigacciOrg
Copy link

The default URL for the GeoIP.dat database is broken, it returns a 404 Not Found (October 2024):
http://www.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz

I tried to configure an alternative URL into downloads.ini, the one I found is HTTPS:
https://mailfud.org/geoip-legacy/GeoIP.dat.gz

Unfortunately it seems that MLDonkey is unable to use HTTPS; after configuring the URL above, I sniffed the traffic toward the target server and I see a TCP connection to TCP port zero instead of 443. Even though I explicitly declare port 443 in the URL, the connection does not happen.

Maybe MLDonkey is not HTTPS capable at all, can be related to issue #41 too.

@raulfg3
Copy link

raulfg3 commented Dec 8, 2024

I use Options -> Web Infos to load and appear to work ( need to copy by hand on web_infos folder first time):

image

@raulfg3
Copy link

raulfg3 commented Dec 8, 2024

but not sure if is loaded by URL when reboot or is always the same I copy by hand first time, apparently the date of the file change between reboots

@raulfg3
Copy link

raulfg3 commented Dec 9, 2024

anybody can re-test?

@raulfg3
Copy link

raulfg3 commented Dec 9, 2024

related: #38

@ogarcia
Copy link

ogarcia commented Jan 31, 2025

@RigacciOrg @raulfg3 the system currently does not work, the only solution is to download the file by hand and update it by hand.

One option to automate it would be to edit the systemd unit that starts mldonkey and put an ExecStartPre that downloads the file when the daemon starts. Another could be to schedule a cron (with systemd or crontab) to do it periodically.

IMHO neither is worthwhile because it is not such a live file that you can't manually update it from time to time.

@raulfg3
Copy link

raulfg3 commented Jan 31, 2025

Thanks a lot to test, and for your suggestion. because is only update fewtimes a year, I doi by hand .

Perhaps developer read this and update code .

@carlonluca
Copy link
Contributor

For those of you adventurous enough, I uploaded some patches to fix this problem: https://github.com/carlonluca/mldonkey/tree/feature/curl.

You'll have to build the branch feature/curl from my fork of mldonkey and use the URL https://dl.miyuru.lk/geoip/maxmind/country/maxmind4.dat.gz. I also uploaded an experimental docker image with these patches.

I'm still testing the implementation, but it seems my geoip db was actually updated properly from that URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants