mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix WS tracker
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user