From 4832e41584044cdc6c4ef9852d458031326b164d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 25 Feb 2020 16:27:35 +0100 Subject: Fix WS tracker --- server/controllers/tracker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts index e9c8a13da..4f756fc0a 100644 --- a/server/controllers/tracker.ts +++ b/server/controllers/tracker.ts @@ -87,7 +87,7 @@ function createWebsocketTrackerServer (app: express.Application) { }) server.on('upgrade', (request: express.Request, socket, head) => { - if (request.path === '/tracker/socket') { + if (request.url === '/tracker/socket') { wss.handleUpgrade(request, socket, head, ws => wss.emit('connection', ws, request)) } -- cgit v1.2.3