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.
This commit is contained in:
Kumi 2024-06-16 15:54:00 +02:00
parent 95f2b9b713
commit 596cce9d16
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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,
});