]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peer_protocol/extended.go
Attempt holepunch after initial dial fails
[btrtrc.git] / peer_protocol / extended.go
index e6d935f72cf01d4aebeeb1ec7198a05415225b91..8bc518163394ec8bbf619b135edf055c6f715b87 100644 (file)
@@ -7,10 +7,12 @@ import (
 // http://www.bittorrent.org/beps/bep_0010.html
 type (
        ExtendedHandshakeMessage struct {
-               M          map[ExtensionName]ExtensionNumber `bencode:"m"`
-               V          string                            `bencode:"v,omitempty"`
-               Reqq       int                               `bencode:"reqq,omitempty"`
-               Encryption bool                              `bencode:"e,omitempty"`
+               M    map[ExtensionName]ExtensionNumber `bencode:"m"`
+               V    string                            `bencode:"v,omitempty"`
+               Reqq int                               `bencode:"reqq,omitempty"`
+               // The only mention of this I can find is in https://www.bittorrent.org/beps/bep_0011.html
+               // for bit 0x01.
+               Encryption bool `bencode:"e"`
                // BEP 9
                MetadataSize int `bencode:"metadata_size,omitempty"`
                // The local client port. It would be redundant for the receiving side of