From 596cce9d167f7a8ffa8054f931ceaae7a70a10b9 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 16 Jun 2024 15:54:00 +0200 Subject: [PATCH] feat(tracker): disable HTTP server support Disabled the HTTP server to reduce resource consumption and potential attack surface. Kept WebSocket support to maintain real-time communication functionalities. This change optimizes the server configuration because HTTP is unnecessary for WebTorrent. --- tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker.js b/tracker.js index 7ea2255..8b3512b 100644 --- a/tracker.js +++ b/tracker.js @@ -5,7 +5,7 @@ const HOST = process.env.TRACKER_HOST || "localhost"; const server = new Server({ udp: false, - http: true, + http: false, ws: true, stats: false, });