qbittorrent / qBittorrent

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

[Bug] Enabling proxy in the settings causes incoming port=1 #18472

Open maxpayneovh opened 1 year ago

maxpayneovh commented 1 year ago

qBittorrent & operating system versions

qBittorrent/4.5.0 windows 10 (10.0.1xxxx)

What is the problem?

i use socks5 and on tracker port shows 1

Steps to reproduce

No response

Additional context

i use microsocks i thought it was socks5 issue then i installed hev-socks5-server same.

Log(s) & preferences file(s)

No response

xavier2k6 commented 1 year ago

May have some relevance: https://github.com/arvidn/libtorrent/issues/7315

whexy commented 1 year ago

The behavior observed in the pull request https://github.com/arvidn/libtorrent/pull/4712 is indeed correct. This is because a SOCKS5 proxy server lacks the capability to actively accept TCP connections from a particular port and subsequently forward them back to qBittorrent. As a workaround, the placeholder port 1 is utilized to signify that the peer is unable to actively accept incoming connections.