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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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