libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

announce port=1025 instead of port=1, when there is no listen port

Open Aurumh4x opened this issue 1 year ago • 3 comments

slight update from https://github.com/arvidn/libtorrent/pull/4400

this was causing issues with certain trackers which block advertised listen ports less than 1024 - https://github.com/HDInnovations/UNIT3D-Community-Edition/pull/3329

this was causing bugs with using libtorrent based clients (such as qbittorrent) when using socks proxy, as seen in following issues https://github.com/HDInnovations/UNIT3D-Community-Edition/issues/3428 https://github.com/HDInnovations/UNIT3D-Community-Edition/issues/3847

please let me know if there are any other follow on effects from this that might require changes

Aurumh4x avatar Jul 17 '24 23:07 Aurumh4x

This is just quite a terrible idea. Faking a new port rather than fixing the issue will only lead to trackers that liked it blocking these users getting banned. Cheating is not allowed on most sites.

MiM-MiM avatar Jul 19 '24 06:07 MiM-MiM

it does seem like a stretch to do this. Even reporting &port= at all seems wrong. I think it would be more palatable if there would at least be a setting to enable this (or some compatible) behavior.

arvidn avatar Jul 20 '24 06:07 arvidn

Makes sense, @arvidn Rather than announce a default port, why not announce null/nil or simply use the configured listening port (regardless if it's connectable)? An advanced setting option to switch between announcing a default port, no port, or the configured listening port would address the problem as well. From the UNIT3D perspective, they believe their logic is correct for blocking "faked" ports.

ErickBrown avatar Aug 10 '24 19:08 ErickBrown

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.

stale[bot] avatar Apr 26 '25 10:04 stale[bot]