Skip to content

[feature] Initial support for private torrents#299

Merged
ikatson merged 4 commits intomainfrom
private-torrents
Jan 13, 2025
Merged

[feature] Initial support for private torrents#299
ikatson merged 4 commits intomainfrom
private-torrents

Conversation

@ikatson
Copy link
Owner

@ikatson ikatson commented Jan 13, 2025

BEP 0027 initial implementation https://www.bittorrent.org/beps/bep_0027.html

The intention is mainly to at least stop misbehaving when facing private torrents, i.e.:

  • don't use DHT
  • don't announce on multiple trackers at once

Done these:

  • private field is serialized and deserialized properly
  • DHT is disabled for private trackers
  • only the first tracker is used from the list (to simplify implementation). The algorithm in BEP 27 is a little more involved when handling multiple trackers.

@ikatson ikatson merged commit 6fea795 into main Jan 13, 2025
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

Successfully merging this pull request may close these issues.

1 participant