Skip to content

Commit 3cd77f3

Browse files
authored
fix: http announce no left (webtorrent#548)
* fix: http announce no left * fix: proper left check
1 parent 934dc1b commit 3cd77f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/client/http-tracker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class HTTPTracker extends Tracker {
5555
peer_id: this.client._peerIdBinary,
5656
port: this.client._port
5757
})
58+
59+
if (params.left !== 0 && !params.left) params.left = 16384
5860
if (this._trackerId) params.trackerid = this._trackerId
5961

6062
this._request(this.announceUrl, params, (err, data) => {

0 commit comments

Comments
 (0)