qbittorrent / qBittorrent

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

Can't connect UDP tracker using SOCKS5 #18970

Open TheDarkDnKTv opened 1 year ago

TheDarkDnKTv commented 1 year ago

qBittorrent & operating system versions

qBittorent: v4.5.2 x64 Operating System: Windows 10 Pro 22H2/2965 x64 (10.0.19045) Qt: 5.15.8 Libtorrent: 1.2.18.0

What is the problem?

If enabling connection to SOCKS5 proxy, only trackers with UDP protocol can't be reached. The issue can be resolved if insteadof qBittorrent internal proxy setting using system proxy, but I do not needed to proxy whole traffic.

I'm using latest qBittorrent and lates Shadowsocks client.

Steps to reproduce

  1. Install latest qBittorrent
  2. Install latest Shadowsocks client
  3. Enter shadowsock local proxy (127.0.0.1:1080)
  4. Try to connect any UDP tracker

Additional context

Anonymous mode is disabled.

One of trackers for test: udp://tracker.opentrackr.org:1337/announce If it's strarts from 'http://' protocol, it's working

Log(s) & preferences file(s)

The only suspicious thing appearing at logs is:

(W) 2023-05-11T22:12:20 - SOCKS5 proxy error. Message: "SOCKS5 error. op: sock_read ec: End of file ep: 127.0.0.1:1080"
luzpaz commented 1 year ago

Typo in ticket name. Should be UDP not UPD