mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
fix for node 0.10
This commit is contained in:
parent
a49a0d8d18
commit
c8fcf81908
@ -219,7 +219,7 @@ UDPTracker.prototype._request = function (opts) {
|
|||||||
toUInt64(opts.downloaded),
|
toUInt64(opts.downloaded),
|
||||||
opts.left != null ? toUInt64(opts.left) : new Buffer('FFFFFFFFFFFFFFFF', 'hex'),
|
opts.left != null ? toUInt64(opts.left) : new Buffer('FFFFFFFFFFFFFFFF', 'hex'),
|
||||||
toUInt64(opts.uploaded),
|
toUInt64(opts.uploaded),
|
||||||
common.toUInt32(common.EVENTS[opts.event]),
|
common.toUInt32(common.EVENTS[opts.event] || 0),
|
||||||
common.toUInt32(0), // ip address (optional)
|
common.toUInt32(0), // ip address (optional)
|
||||||
common.toUInt32(0), // key (optional)
|
common.toUInt32(0), // key (optional)
|
||||||
common.toUInt32(opts.numwant),
|
common.toUInt32(opts.numwant),
|
||||||
|
Loading…
Reference in New Issue
Block a user