Skip to content

Commit b2af8c5

Browse files
committed
begin http test refactoring
1 parent 424d715 commit b2af8c5

File tree

5 files changed

+465
-288
lines changed

5 files changed

+465
-288
lines changed

tracker/http/announce.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (tracker *Tracker) announce(conn net.Conn, parameters *announceParameters,
8787
pools.Peerlists4.Put(peers4)
8888
pools.Peerlists6.Put(peers6)
8989
} else {
90-
dictionary.BytesliceSlice("peers", tracker.peerdb.TorrentPeers(hash, numwant, parameters.nopeerid))
90+
dictionary.BytesliceSlice("peers", tracker.peerdb.TorrentPeers(hash, numwant, !parameters.nopeerid))
9191
}
9292

9393
conn.Write(append(httpSuccessBytes, dictionary.GetBytes()...))

0 commit comments

Comments
 (0)