Fix copy and paste error

This commit is contained in:
Justin Li 2014-07-22 01:56:48 -04:00
parent 539a1b3774
commit 9b60b3144e

View file

@ -35,7 +35,7 @@ func (w *Writer) WriteAnnounce(res *models.AnnounceResponse) error {
"min interval": res.MinInterval, "min interval": res.MinInterval,
} }
if res.IPv4Peers != nil || res.IPv4Peers != nil { if res.IPv4Peers != nil || res.IPv6Peers != nil {
if res.Compact { if res.Compact {
dict["peers"] = compactPeers(false, res.IPv4Peers) dict["peers"] = compactPeers(false, res.IPv4Peers)
dict["peers6"] = compactPeers(true, res.IPv6Peers) dict["peers6"] = compactPeers(true, res.IPv6Peers)