From 4c3c950056b6e7321cde2a15153a3b8dfeae551f Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 3 May 2015 14:20:17 -0700 Subject: [PATCH] One more fix for IPv6 UDP support For #73 --- lib/parse_udp.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/parse_udp.js b/lib/parse_udp.js index 0701d94..1a28160 100644 --- a/lib/parse_udp.js +++ b/lib/parse_udp.js @@ -7,8 +7,6 @@ var common = require('./common') function parseUdpRequest (msg, rinfo) { if (msg.length < 16) throw new Error('received packet is too short') - if (rinfo.family !== 'IPv4') throw new Error('udp tracker does not support IPv6') - var params = { connectionId: msg.slice(0, 8), // 64-bit action: msg.readUInt32BE(8), @@ -63,8 +61,6 @@ function parseUdpRequest (msg, rinfo) { return params } -// HELPER FUNCTIONS - var TWO_PWR_32 = (1 << 16) * 2 /**