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 3cec3fa commit 8386072Copy full SHA for 8386072
lib/server/parse-udp.js
@@ -43,7 +43,7 @@ function parseUdpRequest (msg, rinfo) {
43
common.MAX_ANNOUNCE_PEERS
44
)
45
46
- params.port = msg.readUInt16BE(96) || rinfo.port // optional
+ params.port = rinfo.port // optional
47
params.addr = params.ip + ':' + params.port // TODO: ipv6 brackets
48
params.compact = 1 // udp is always compact
49
} else if (params.action === common.ACTIONS.SCRAPE) { // scrape message
0 commit comments