mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-21 20:59:02 +00:00
fix: http announce no left (#548)
* fix: http announce no left * fix: proper left check
This commit is contained in:
parent
934dc1bafc
commit
3cd77f3e6f
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user