Skip to content

Commit 2fffdc6

Browse files
committed
ws server: drop support for old tracker clients
old clients don’t send params.action === ‘action’
1 parent 4159d35 commit 2fffdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server/parse-websocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function parseWebSocketRequest (socket, opts, params) {
88

99
params.type = 'ws'
1010
params.socket = socket
11-
if (params.action === 'announce' || params.offers || params.answer) {
11+
if (params.action === 'announce') {
1212
params.action = common.ACTIONS.ANNOUNCE
1313

1414
if (typeof params.info_hash !== 'string' || params.info_hash.length !== 20) {

0 commit comments

Comments
 (0)