Closed proninyaroslav closed 2 years ago
perhaps the error codes don't translate well across the C++ <-> Java boundary, and those errors are really SSL errors. It might be worth making sure you have the root certificate that your tracker's SSL certificate was signed by.
It needs to be installed on the system for OpenSSL to pick up.
I will try to disable SSL certificate verification and I will inform you
Yes, I tried to turn off the validate_https_trackers
flag and the tracker worked. I think it's worth making it as an option in my app.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Please provide the following information
libtorrent version (or branch): master (libtorrent4j 2.0.4-22-RC1)
platform/architecture: Android ARM64
I'm using
libtorrent4j
(a Java wrapper overlibtorrent
master) in my Android app. And I see complaints from users that some trackers don't work with HTTPS. For example, we have a private trackerhttps://tracker.bj-share.info:2053/.../announce
. If I add it as HTTP and not HTTPS then it works. But if I add it as HTTPS, the torrent client cannot connect to it (Network is unreachable
andunspecified system error [sock_read]
), although I tested this tracker in qBittorrent and it seems to work fine. Any ideas why this is so?