Skip to content

Commit ec67f42

Browse files
committed
only /announce and /scrape are valid endpoints
1 parent 23d2c02 commit ec67f42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ Server.prototype._onHttpRequest = function (req, res) {
253253
})
254254

255255
res.end(bencode.encode(response))
256+
257+
} else {
258+
error('only /announce and /scrape are valid endpoints')
256259
}
257260

258261
function error (message) {

0 commit comments

Comments
 (0)