[mirotalk] - Fix HOST_PROTECTED mode, update dep

This commit is contained in:
Miroslav Pejic
2024-04-13 22:14:34 +02:00
parent 748425dddb
commit 8377997f86
3 changed files with 8 additions and 12 deletions
+4 -8
View File
@@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.3.16
* @version 1.3.17
*
*/
@@ -365,7 +365,7 @@ app.use((err, req, res, next) => {
// main page
app.get(['/'], (req, res) => {
if (hostCfg.protected) {
if (hostCfg.protected && !hostCfg.authenticated) {
const ip = getIP(req);
if (allowedIP(ip)) {
res.sendFile(views.landing);
@@ -380,7 +380,7 @@ app.get(['/'], (req, res) => {
// set new room name and join
app.get(['/newcall'], (req, res) => {
if (hostCfg.protected) {
if (hostCfg.protected && !hostCfg.authenticated) {
const ip = getIP(req);
if (allowedIP(ip)) {
res.sendFile(views.newCall);
@@ -417,7 +417,7 @@ app.get(['/test'], (req, res) => {
res.sendFile(views.stunTurn);
});
// no room name specified to join
// Handle Direct join room with params
app.get('/join/', (req, res) => {
if (Object.keys(req.query).length > 0) {
log.debug('Request Query', req.query);
@@ -470,10 +470,6 @@ app.get('/join/', (req, res) => {
return res.sendFile(views.login);
}
}
if (hostCfg.protected) {
return res.sendFile(views.login);
}
res.redirect('/');
});
// Join Room by id
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.3.16",
"version": "1.3.17",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
@@ -49,8 +49,8 @@
"express": "^4.19.2",
"jsonwebtoken": "^9.0.2",
"ngrok": "^5.0.0-beta.2",
"openai": "^4.33.0",
"qs": "^6.12.0",
"openai": "^4.33.1",
"qs": "^6.12.1",
"socket.io": "^4.7.5",
"swagger-ui-express": "^5.0.0",
"uuid": "9.0.1",
+1 -1
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.3.16
* @version 1.3.17
*
*/