Fix WS tracker

pull/2514/head
Chocobozzz 2020-02-25 16:27:35 +01:00
parent 1647e4effd
commit 4832e41584
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

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