We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aceca28 commit 65c44e8Copy full SHA for 65c44e8
server.js
@@ -133,6 +133,8 @@ Server.prototype._onHttpRequest = function (req, res) {
133
134
if (!infoHash) return error('invalid info_hash')
135
if (infoHash.length !== 20) return error('invalid info_hash')
136
+ if (!peerId) return error('invalid peer_id')
137
+ if (peerId.length !== 20) return error('invalid peer_id')
138
if (!port) return error('invalid port')
139
if (!peerId) return error('invalid peer_id')
140
0 commit comments