mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
typo
This commit is contained in:
parent
7e7062d2ae
commit
97222ed16d
@ -19,7 +19,7 @@ function parseWebSocketRequest (socket, params) {
|
||||
params.peer_id = common.binaryToHex(params.peer_id)
|
||||
|
||||
if (params.answer) {
|
||||
if (typeof params.to_peer_id !== 'string' || params.to_peer_id.length !== 20)) {
|
||||
if (typeof params.to_peer_id !== 'string' || params.to_peer_id.length !== 20) {
|
||||
throw new Error('invalid `to_peer_id` (required with `answer`)')
|
||||
}
|
||||
params.to_peer_id = common.binaryToHex(params.to_peer_id)
|
||||
|
Loading…
Reference in New Issue
Block a user