]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Document use of the ExtensionBitV2Upgrade reserved bit
authorMatt Joiner <anacrolix@gmail.com>
Thu, 21 Mar 2024 21:15:37 +0000 (08:15 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 21 Mar 2024 21:15:37 +0000 (08:15 +1100)
peer_protocol/handshake.go

index bce28340bbe8c60d75c4aa735ae1c42d790a9990..a6512c796e949a9920b8930402e4e9aa0d305827 100644 (file)
@@ -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