diff --git a/server.js b/server.js index f50ea5b..57518a3 100644 --- a/server.js +++ b/server.js @@ -338,7 +338,7 @@ Server.prototype._onWebSocketRequest = function (socket, opts, params) { if (self.destroyed) return 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 hashes.forEach(function (info_hash) { if (socket.infoHashes.indexOf(info_hash) === -1) {