mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 02:46:29 +00:00
Fixes for PR #185
This commit is contained in:
parent
76165007ba
commit
27ae148167
@ -25,7 +25,7 @@ function parseHttpRequest (req, opts) {
|
||||
if (!params.port) throw new Error('invalid port')
|
||||
|
||||
params.left = Number(params.left)
|
||||
if (isNaN(params.left)) params.left = Infinity
|
||||
if (Number.isNaN(params.left)) params.left = Infinity
|
||||
|
||||
params.compact = Number(params.compact) || 0
|
||||
params.numwant = Math.min(
|
||||
|
Loading…
Reference in New Issue
Block a user