only /announce and /scrape are valid endpoints

This commit is contained in:
Feross Aboukhadijeh 2014-07-10 21:30:17 -07:00
parent 23d2c02fe6
commit ec67f42b14

View File

@ -253,6 +253,9 @@ Server.prototype._onHttpRequest = function (req, res) {
})
res.end(bencode.encode(response))
} else {
error('only /announce and /scrape are valid endpoints')
}
function error (message) {