Skip to content

Commit 4c3c950

Browse files
committed
One more fix for IPv6 UDP support
For webtorrent#73
1 parent d56dd26 commit 4c3c950

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/parse_udp.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ var common = require('./common')
77
function parseUdpRequest (msg, rinfo) {
88
if (msg.length < 16) throw new Error('received packet is too short')
99

10-
if (rinfo.family !== 'IPv4') throw new Error('udp tracker does not support IPv6')
11-
1210
var params = {
1311
connectionId: msg.slice(0, 8), // 64-bit
1412
action: msg.readUInt32BE(8),
@@ -63,8 +61,6 @@ function parseUdpRequest (msg, rinfo) {
6361
return params
6462
}
6563

66-
// HELPER FUNCTIONS
67-
6864
var TWO_PWR_32 = (1 << 16) * 2
6965

7066
/**

0 commit comments

Comments
 (0)