[mirotalksfu] - #124 keep room name through authentication

هذا الالتزام موجود في:
Miroslav Pejic
2023-09-05 08:43:51 +02:00
الأصل 43d9acd207
التزام 6b08df99bc
2 ملفات معدلة مع 15 إضافات و4 حذوفات

عرض الملف

@@ -241,6 +241,14 @@ function startServer() {
app.get(['/logged'], (req, res) => {
const ip = getIP(req);
if (allowedIP(ip)) {
if (Object.keys(req.query).length > 0) {
log.debug('Logged: Direct Join', req.query);
// http://localhost:3010/?room=test or http://localhost:3010/join?room=test
const { room } = checkXSS(req.query);
if (room) {
return res.sendFile(views.room);
}
}
res.sendFile(views.landing);
} else {
hostCfg.authenticated = false;