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:
parent
95f2b9b713
commit
596cce9d16
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue