mirror of
https://github.com/logos-storage/bittorrent-tracker.git
synced 2026-05-28 19:29:26 +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)
|
params.peer_id = common.binaryToHex(params.peer_id)
|
||||||
|
|
||||||
if (params.answer) {
|
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`)')
|
throw new Error('invalid `to_peer_id` (required with `answer`)')
|
||||||
}
|
}
|
||||||
params.to_peer_id = common.binaryToHex(params.to_peer_id)
|
params.to_peer_id = common.binaryToHex(params.to_peer_id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user