]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix build error
authorMatt Joiner <anacrolix@gmail.com>
Sat, 16 Sep 2017 14:44:09 +0000 (00:44 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 16 Sep 2017 14:44:09 +0000 (00:44 +1000)
torrent.go

index 6b566cd9d5b1b4abf63316b36c3250600b4cf269..f1ff59d0668e85ecf358457ea1c25baf910f18ef 100644 (file)
@@ -160,7 +160,7 @@ func (t *Torrent) KnownSwarm() (ks []Peer) {
                        // > received it from trackers/DHT/PEX, or just use the encryption state for the
                        // > connection. It's probably easiest to do the latter for now.
                        // https://github.com/anacrolix/torrent/pull/188
-                       SupportsEncryption: conn.encrypted,
+                       SupportsEncryption: conn.headerEncrypted,
                })
        }