Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: ipv6 support for UDP trackers #235

Open
edo1 opened this issue Sep 27, 2022 · 0 comments
Open

FR: ipv6 support for UDP trackers #235

edo1 opened this issue Sep 27, 2022 · 0 comments

Comments

@edo1
Copy link

edo1 commented Sep 27, 2022

Currently, ipv6 is only supported with HTTP trackers ("peers6" key).

https://www.bittorrent.org/beps/bep_0015.html
IPv6 announces have the same structure as v4 ones, including the used action number except that the stride size of <IP address, TCP port> pairs in the response is 18 bytes instead of 6.

As far as I understand, the current code incorrectly interprets these 18 bytes as 3 pairs of <IPv4 address, TCP port>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant