Use ensureAuthenticated as middleware

This commit is contained in:
Asher
2020-11-03 16:45:03 -06:00
parent 476379a77e
commit 34225e2bdf
5 changed files with 40 additions and 34 deletions

View File

@@ -35,8 +35,8 @@ router.all("/(:port)(/*)?", (req, res) => {
})
})
router.ws("/(:port)(/*)?", (socket, head, req) => {
proxy.ws(req, socket, head, {
router.ws("/(:port)(/*)?", (req) => {
proxy.ws(req, req.ws, req.head, {
ignorePath: true,
target: getProxyTarget(req, true),
})