aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/tracker.ts2
1 files changed, 1 insertions, 1 deletions
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) {
87 }) 87 })
88 88
89 server.on('upgrade', (request: express.Request, socket, head) => { 89 server.on('upgrade', (request: express.Request, socket, head) => {
90 if (request.path === '/tracker/socket') { 90 if (request.url === '/tracker/socket') {
91 wss.handleUpgrade(request, socket, head, ws => wss.emit('connection', ws, request)) 91 wss.handleUpgrade(request, socket, head, ws => wss.emit('connection', ws, request))
92 } 92 }
93 93