Skip to content

Commit

Permalink
Document use of the ExtensionBitV2Upgrade reserved bit
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Mar 21, 2024
1 parent 48f27c6 commit 5ddf300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer_protocol/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
ExtensionBitFast = 2 // http://www.bittorrent.org/beps/bep_0006.html
// A peer connection initiator can set this when sending a v1 infohash during handshake if they
// allow the receiving end to upgrade to v2 by responding with the corresponding v2 infohash.
// BEP 52, and BEP 4
// BEP 52, and BEP 4. TODO: Set by default and then clear it when it's not appropriate to send.
ExtensionBitV2Upgrade = 4
ExtensionBitAzureusExtensionNegotiation1 = 16
ExtensionBitAzureusExtensionNegotiation2 = 17
Expand Down

0 comments on commit 5ddf300

Please sign in to comment.