diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-25 16:27:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-25 16:30:09 +0100 |
commit | 4832e41584044cdc6c4ef9852d458031326b164d (patch) | |
tree | 87ba073fcc69217eb4c4afe374da485521879d79 /server | |
parent | 1647e4effd9481203de8bd6204c54bc023b37ae6 (diff) | |
download | PeerTube-4832e41584044cdc6c4ef9852d458031326b164d.tar.gz PeerTube-4832e41584044cdc6c4ef9852d458031326b164d.tar.zst PeerTube-4832e41584044cdc6c4ef9852d458031326b164d.zip |
Fix WS tracker
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/tracker.ts | 2 |
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 | ||