mirror of https://github.com/Chocobozzz/PeerTube
Fix WS tracker
parent
1647e4effd
commit
4832e41584
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue