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 d56dd26 commit 4c3c950Copy full SHA for 4c3c950
lib/parse_udp.js
@@ -7,8 +7,6 @@ var common = require('./common')
7
function parseUdpRequest (msg, rinfo) {
8
if (msg.length < 16) throw new Error('received packet is too short')
9
10
- if (rinfo.family !== 'IPv4') throw new Error('udp tracker does not support IPv6')
11
-
12
var params = {
13
connectionId: msg.slice(0, 8), // 64-bit
14
action: msg.readUInt32BE(8),
@@ -63,8 +61,6 @@ function parseUdpRequest (msg, rinfo) {
63
61
return params
64
62
}
65
66
-// HELPER FUNCTIONS
67
68
var TWO_PWR_32 = (1 << 16) * 2
69
70
/**
0 commit comments