mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
parent
90c2a1a6e1
commit
f1cc540e79
@ -47,7 +47,7 @@ Swarm.prototype._onAnnounce_started = function (params, peer) {
|
||||
if (params.left === 0) this.complete += 1
|
||||
else this.incomplete += 1
|
||||
peer = this.peers[params.addr || params.peer_id] = {
|
||||
complete: false,
|
||||
complete: params.left === 0,
|
||||
ip: params.ip, // only http+udp
|
||||
peerId: params.peer_id, // as hex
|
||||
port: params.port, // only http+udp
|
||||
|
Loading…
Reference in New Issue
Block a user