diff --git a/lib/server/parse-websocket.js b/lib/server/parse-websocket.js index 720639e..0db50b5 100644 --- a/lib/server/parse-websocket.js +++ b/lib/server/parse-websocket.js @@ -8,7 +8,7 @@ function parseWebSocketRequest (socket, opts, params) { params.type = 'ws' params.socket = socket - if (params.action === 'announce' || params.offers || params.answer) { + if (params.action === 'announce') { params.action = common.ACTIONS.ANNOUNCE if (typeof params.info_hash !== 'string' || params.info_hash.length !== 20) {