qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.69k stars 4.01k forks source link

Use direct connection for tracker and use proxy for peer connections #18869

Open syphyr opened 1 year ago

syphyr commented 1 year ago

Suggestion

Please add proxy option to use direct connection with tracker and proxy with peer connections.

Use case

Some trackers are udp only but the available proxy does not support udp connections. I would like to make tcp peer connections with proxy and use direct connection to connect to udp tracker.

Extra info/examples/attachments

No response

glassez commented 1 year ago

AFAIK, libtorrent allows to proxy either trackers only or both trackers+peers. @arvidn?

syphyr commented 1 year ago

So this would require a change in the libtorrent library?

glassez commented 1 year ago

So this would require a change in the libtorrent library?

Yes.

syphyr commented 1 year ago

I created an issue with libtorrent here: https://github.com/arvidn/libtorrent/issues/7397

Just as a test, I forced proxy_tracker_connections in libtorrent to always be false, which fixed the problem with connecting to the udp tracker, but there must be more changes needed in libtorrent because then the peer connection would not work. Somehow, the peer connection also needs to be forced while proxy_tracker_connections is false. Any suggestions, even dirty hacks, are welcome just to get a proof of concept.

evilblade666 commented 1 year ago

I want VERY much to see this separation also! Otherwise I have to constantly turn the proxy on and off in settings. If it's enabled - I don't get any peers and when it's off - my ISP detects that I'm using torrent and limits the speed to like 2kb/s :(

Amadeus- commented 9 months ago

I would like to add my support for this feature as well. It seems necessary in this day and age, when using private trackers.