fix for node 0.10

This commit is contained in:
Feross Aboukhadijeh 2015-07-27 15:28:23 -07:00
parent a49a0d8d18
commit c8fcf81908

View File

@ -219,7 +219,7 @@ UDPTracker.prototype._request = function (opts) {
toUInt64(opts.downloaded),
opts.left != null ? toUInt64(opts.left) : new Buffer('FFFFFFFFFFFFFFFF', 'hex'),
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), // key (optional)
common.toUInt32(opts.numwant),