From ec67f42b14cf8f5c1452c70b8904977ceee1a229 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 10 Jul 2014 21:30:17 -0700 Subject: [PATCH] only /announce and /scrape are valid endpoints --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 55366c7..7080d66 100644 --- a/server.js +++ b/server.js @@ -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) {