From: Matt Joiner <anacrolix@gmail.com>
Date: Sat, 16 Sep 2017 14:44:09 +0000 (+1000)
Subject: Fix build error
X-Git-Tag: v1.0.0~390
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=69ffb9bc8d340052bdd3613907645363b1b0d2f5;p=btrtrc.git

Fix build error
---

diff --git a/torrent.go b/torrent.go
index 6b566cd9..f1ff59d0 100644
--- a/torrent.go
+++ b/torrent.go
@@ -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,
 		})
 	}