[mirotalksfu] - allow join with /roomId
هذا الالتزام موجود في:
@@ -55,7 +55,7 @@ dev dependencies: {
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.6.51
|
||||
* @version 1.6.52
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -907,6 +907,19 @@ function startServer() {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
// Join roomId redirect to /join?room=roomId
|
||||
app.get('/:roomId', (req, res) => {
|
||||
const { roomId } = checkXSS(req.params);
|
||||
|
||||
if (!roomId) {
|
||||
log.warn('/:roomId empty', roomId);
|
||||
return res.redirect('/');
|
||||
}
|
||||
|
||||
log.debug('Detected roomId --> redirect to /join?room=roomId');
|
||||
res.redirect(`/join?room=${roomId}`); // `/join/${roomId}`
|
||||
});
|
||||
|
||||
// ####################################################
|
||||
// REST API
|
||||
// ####################################################
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalksfu",
|
||||
"version": "1.6.51",
|
||||
"version": "1.6.52",
|
||||
"description": "WebRTC SFU browser-based video calls",
|
||||
"main": "Server.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.6.51
|
||||
* @version 1.6.52
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -4619,7 +4619,7 @@ function showAbout() {
|
||||
imageUrl: image.about,
|
||||
customClass: { image: 'img-about' },
|
||||
position: 'center',
|
||||
title: 'WebRTC SFU v1.6.51',
|
||||
title: 'WebRTC SFU v1.6.52',
|
||||
html: `
|
||||
<br />
|
||||
<div id="about">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.6.51
|
||||
* @version 1.6.52
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم