mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 02:46:29 +00:00
ws server: drop support for old tracker clients
old clients don’t send params.action === ‘action’
This commit is contained in:
parent
4159d35cfc
commit
2fffdc6730
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user