mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-07 13:59:07 +00:00
Standard fix
This commit is contained in:
parent
f70d0d2f07
commit
5138d5c5a9
@ -338,7 +338,7 @@ Server.prototype._onWebSocketRequest = function (socket, opts, params) {
|
|||||||
if (self.destroyed) return
|
if (self.destroyed) return
|
||||||
|
|
||||||
var hashes
|
var hashes
|
||||||
if (typeof params.info_hash === 'string') hashes = [ params.info_hash ]
|
if (typeof params.info_hash === 'string') hashes = [ params.info_hash ]
|
||||||
else hashes = params.info_hash
|
else hashes = params.info_hash
|
||||||
hashes.forEach(function (info_hash) {
|
hashes.forEach(function (info_hash) {
|
||||||
if (socket.infoHashes.indexOf(info_hash) === -1) {
|
if (socket.infoHashes.indexOf(info_hash) === -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user