We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a49a0d8 commit c8fcf81Copy full SHA for c8fcf81
lib/udp-tracker.js
@@ -219,7 +219,7 @@ UDPTracker.prototype._request = function (opts) {
219
toUInt64(opts.downloaded),
220
opts.left != null ? toUInt64(opts.left) : new Buffer('FFFFFFFFFFFFFFFF', 'hex'),
221
toUInt64(opts.uploaded),
222
- common.toUInt32(common.EVENTS[opts.event]),
+ common.toUInt32(common.EVENTS[opts.event] || 0),
223
common.toUInt32(0), // ip address (optional)
224
common.toUInt32(0), // key (optional)
225
common.toUInt32(opts.numwant),
0 commit comments