1
0
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:
Cas_
2025-01-19 23:33:16 +01:00
committed by GitHub
parent 934dc1bafc
commit 3cd77f3e6f

View File

@@ -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) => {