Fix semantics of seed stats, fix Peer.IPv6() always returning true

This commit is contained in:
Justin Li
2014-07-22 01:06:30 -04:00
parent 26f87139e0
commit e17c984ec8
3 changed files with 11 additions and 5 deletions
+1 -3
View File
@@ -259,9 +259,7 @@ func appendPeers(ipv4s, ipv6s models.PeerList, ann *models.Announce, announcer *
for _, peer := range peers {
if count >= wanted {
break
}
if peersEquivalent(&peer, announcer) {
} else if peersEquivalent(&peer, announcer) {
continue
}