[mirotlaksfu] - improvements
هذا الالتزام موجود في:
@@ -124,9 +124,9 @@ $ apt install -y software-properties-common
|
|||||||
$ add-apt-repository ppa:deadsnakes/ppa
|
$ add-apt-repository ppa:deadsnakes/ppa
|
||||||
$ apt update
|
$ apt update
|
||||||
$ apt install -y python3.8 python3-pip
|
$ apt install -y python3.8 python3-pip
|
||||||
# NodeJS 16.X and npm
|
# NodeJS 18.X and npm
|
||||||
$ apt install -y curl dirmngr apt-transport-https lsb-release ca-certificates
|
$ apt install -y curl dirmngr apt-transport-https lsb-release ca-certificates
|
||||||
$ curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
$ curl -sL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
$ apt-get install -y nodejs
|
$ apt-get install -y nodejs
|
||||||
$ npm install -g npm@latest
|
$ npm install -g npm@latest
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -514,6 +514,11 @@ function startServer() {
|
|||||||
// ####################################################
|
// ####################################################
|
||||||
|
|
||||||
io.on('connection', (socket) => {
|
io.on('connection', (socket) => {
|
||||||
|
socket.on('clientError', (error) => {
|
||||||
|
log.error('Client error', error);
|
||||||
|
socket.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
socket.on('createRoom', async ({ room_id }, callback) => {
|
socket.on('createRoom', async ({ room_id }, callback) => {
|
||||||
socket.room_id = room_id;
|
socket.room_id = room_id;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const checkXSS = (dataObject) => {
|
|||||||
log.debug('XSS String sanitization done');
|
log.debug('XSS String sanitization done');
|
||||||
return xss(dataObject);
|
return xss(dataObject);
|
||||||
}
|
}
|
||||||
log.warn('XSS not sanitized', dataObject);
|
log.debug('XSS not sanitized', dataObject);
|
||||||
return dataObject;
|
return dataObject;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.error('XSS error', { data: dataObject, error: error });
|
log.error('XSS error', { data: dataObject, error: error });
|
||||||
|
|||||||
@@ -663,7 +663,8 @@ class RoomClient {
|
|||||||
function () {
|
function () {
|
||||||
console.log('Connected to signaling server!');
|
console.log('Connected to signaling server!');
|
||||||
this._isConnected = true;
|
this._isConnected = true;
|
||||||
location.reload();
|
// location.reload();
|
||||||
|
getPeerName() ? location.reload() : openURL(this.getDirectJoinURL());
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -701,6 +702,10 @@ class RoomClient {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getDirectJoinURL() {
|
||||||
|
return `${window.location.origin}/join?room=${this.room_id}&password=${this.RoomPassword}&name=${this.peer_name}&audio=${this.peer_info.peer_audio}&video=${this.peer_info.peer_video}&screen=${this.peer_info.peer_screen}¬ify=0`;
|
||||||
|
}
|
||||||
|
|
||||||
// ####################################################
|
// ####################################################
|
||||||
// CHECK USER
|
// CHECK USER
|
||||||
// ####################################################
|
// ####################################################
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم