[mirotalksfu] - comment
هذا الالتزام موجود في:
@@ -310,7 +310,7 @@ function startServer() {
|
|||||||
|
|
||||||
// main page
|
// main page
|
||||||
app.get(['/'], (req, res) => {
|
app.get(['/'], (req, res) => {
|
||||||
log.debug('/ - hostCfg ----->', hostCfg);
|
//log.debug('/ - hostCfg ----->', hostCfg);
|
||||||
if (hostCfg.protected && !hostCfg.authenticated) {
|
if (hostCfg.protected && !hostCfg.authenticated) {
|
||||||
const ip = getIP(req);
|
const ip = getIP(req);
|
||||||
if (allowedIP(ip)) {
|
if (allowedIP(ip)) {
|
||||||
@@ -327,7 +327,7 @@ function startServer() {
|
|||||||
|
|
||||||
// set new room name and join
|
// set new room name and join
|
||||||
app.get(['/newroom'], (req, res) => {
|
app.get(['/newroom'], (req, res) => {
|
||||||
log.info('/newroom - hostCfg ----->', hostCfg);
|
//log.info('/newroom - hostCfg ----->', hostCfg);
|
||||||
|
|
||||||
if (hostCfg.protected && !hostCfg.authenticated) {
|
if (hostCfg.protected && !hostCfg.authenticated) {
|
||||||
const ip = getIP(req);
|
const ip = getIP(req);
|
||||||
@@ -346,7 +346,7 @@ function startServer() {
|
|||||||
// Handle Direct join room with params
|
// Handle Direct join room with params
|
||||||
app.get('/join/', async (req, res) => {
|
app.get('/join/', async (req, res) => {
|
||||||
if (Object.keys(req.query).length > 0) {
|
if (Object.keys(req.query).length > 0) {
|
||||||
log.debug('/join/params - hostCfg ----->', hostCfg);
|
//log.debug('/join/params - hostCfg ----->', hostCfg);
|
||||||
|
|
||||||
log.debug('Direct Join', req.query);
|
log.debug('Direct Join', req.query);
|
||||||
|
|
||||||
@@ -404,7 +404,7 @@ function startServer() {
|
|||||||
|
|
||||||
// join room by id
|
// join room by id
|
||||||
app.get('/join/:roomId', (req, res) => {
|
app.get('/join/:roomId', (req, res) => {
|
||||||
log.debug('/join/room - hostCfg ----->', hostCfg);
|
//log.debug('/join/room - hostCfg ----->', hostCfg);
|
||||||
if (hostCfg.authenticated) {
|
if (hostCfg.authenticated) {
|
||||||
res.sendFile(views.room);
|
res.sendFile(views.room);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم