mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-20 20:29:02 +00:00
ws client: drop support for old tracker servers
Old tracker server versions don’t send data.action === ‘announce’
This commit is contained in:
parent
8ed0e14ef4
commit
4159d35cfc
@ -183,7 +183,7 @@ WebSocketTracker.prototype._onSocketData = function (data) {
|
||||
return
|
||||
}
|
||||
|
||||
if (data.action === 'announce' || data.offer || data.answer) {
|
||||
if (data.action === 'announce') {
|
||||
self._onAnnounceResponse(data)
|
||||
} else if (data.action === 'scrape') {
|
||||
self._onScrapeResponse(data)
|
||||
|
Loading…
Reference in New Issue
Block a user