File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,20 @@ HTTPTracker.prototype.announce = function (opts) {
4141 if ( self . destroyed ) return
4242
4343 var params = {
44- numwant : opts . numwant ,
44+ info_hash : self . client . _infoHashBinary ,
45+ peer_id : self . client . _peerIdBinary ,
46+ port : self . client . _port ,
4547 uploaded : opts . uploaded ,
4648 downloaded : opts . downloaded ,
47- event : opts . event ,
49+ left : opts . left ,
50+ numwant : opts . numwant ,
51+ key : opts . key ,
4852 compact : ( opts . compact == null ) ? 1 : opts . compact ,
49- info_hash : self . client . _infoHashBinary ,
50- peer_id : self . client . _peerIdBinary ,
51- port : self . client . _port
53+ event : opts . event
5254 }
55+
56+ if ( ! params . key ) { delete params . key }
57+
5358 if ( self . _trackerId ) params . trackerid = self . _trackerId
5459
5560 self . _request ( self . announceUrl , params , self . _onAnnounceResponse . bind ( self ) )
You can’t perform that action at this time.
0 commit comments