From 9b60b3144e467d40162430d4c4b67a354c8f0ecd Mon Sep 17 00:00:00 2001 From: Justin Li Date: Tue, 22 Jul 2014 01:56:48 -0400 Subject: [PATCH] Fix copy and paste error --- http/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/writer.go b/http/writer.go index e29aec6..c83fa48 100644 --- a/http/writer.go +++ b/http/writer.go @@ -35,7 +35,7 @@ func (w *Writer) WriteAnnounce(res *models.AnnounceResponse) error { "min interval": res.MinInterval, } - if res.IPv4Peers != nil || res.IPv4Peers != nil { + if res.IPv4Peers != nil || res.IPv6Peers != nil { if res.Compact { dict["peers"] = compactPeers(false, res.IPv4Peers) dict["peers6"] = compactPeers(true, res.IPv6Peers)