mirror of
https://github.com/webtorrent/bittorrent-tracker
synced 2025-10-05 15:52:42 +02:00
fix: http announce no left (#548)
* fix: http announce no left * fix: proper left check
This commit is contained in:
@@ -55,6 +55,8 @@ class HTTPTracker extends Tracker {
|
||||
peer_id: this.client._peerIdBinary,
|
||||
port: this.client._port
|
||||
})
|
||||
|
||||
if (params.left !== 0 && !params.left) params.left = 16384
|
||||
if (this._trackerId) params.trackerid = this._trackerId
|
||||
|
||||
this._request(this.announceUrl, params, (err, data) => {
|
||||
|
Reference in New Issue
Block a user