[mirotalksfu] - remove unused
هذا الالتزام موجود في:
@@ -729,6 +729,9 @@ function startServer() {
|
||||
});
|
||||
}
|
||||
|
||||
// Get peer IPv4 (::1 Its the loopback address in ipv6, equal to 127.0.0.1 in ipv4)
|
||||
const peer_ip = socket.handshake.headers['x-forwarded-for'] || socket.conn.remoteAddress;
|
||||
|
||||
const data = checkXSS(dataObject);
|
||||
|
||||
log.debug('User joined', data);
|
||||
@@ -756,6 +759,7 @@ function startServer() {
|
||||
|
||||
if (Object.keys(presenters[socket.room_id]).length === 0) {
|
||||
presenters[socket.room_id] = {
|
||||
peer_ip: peer_ip,
|
||||
peer_name: peer_name,
|
||||
peer_uuid: peer_uuid,
|
||||
is_presenter: true,
|
||||
|
||||
@@ -26,7 +26,6 @@ const socket = io({ transports: ['websocket'] });
|
||||
const surveyActive = true;
|
||||
|
||||
const url = {
|
||||
ipLookup: 'https://extreme-ip-lookup.com/json/?key=demo2',
|
||||
survey: 'https://www.questionpro.com/t/AUs7VZq02P',
|
||||
};
|
||||
|
||||
@@ -75,7 +74,6 @@ let peer_name = getPeerName();
|
||||
let isScreenAllowed = getScreen();
|
||||
let notify = getNotify();
|
||||
|
||||
let peer_geo = null;
|
||||
let peer_info = null;
|
||||
|
||||
let isHideMeActive = false;
|
||||
@@ -260,7 +258,6 @@ async function initEnumerateDevices() {
|
||||
setButtonsInit();
|
||||
setSelectsInit();
|
||||
handleSelectsInit();
|
||||
getPeerGeoLocation();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -459,15 +456,6 @@ function getPeerInfo() {
|
||||
};
|
||||
}
|
||||
|
||||
function getPeerGeoLocation() {
|
||||
fetch(url.ipLookup)
|
||||
.then((res) => res.json())
|
||||
.then((outJson) => {
|
||||
peer_geo = outJson;
|
||||
})
|
||||
.catch((ex) => console.warn('IP Lookup', ex));
|
||||
}
|
||||
|
||||
// ####################################################
|
||||
// ENTER YOUR NAME | Enable/Disable AUDIO/VIDEO
|
||||
// ####################################################
|
||||
@@ -719,7 +707,6 @@ function joinRoom(peer_name, room_id) {
|
||||
socket,
|
||||
room_id,
|
||||
peer_name,
|
||||
peer_geo,
|
||||
peer_info,
|
||||
isAudioAllowed,
|
||||
isVideoAllowed,
|
||||
|
||||
@@ -116,7 +116,6 @@ class RoomClient {
|
||||
socket,
|
||||
room_id,
|
||||
peer_name,
|
||||
peer_geo,
|
||||
peer_info,
|
||||
isAudioAllowed,
|
||||
isVideoAllowed,
|
||||
@@ -134,7 +133,6 @@ class RoomClient {
|
||||
this.room_id = room_id;
|
||||
this.peer_id = socket.id;
|
||||
this.peer_name = peer_name;
|
||||
this.peer_geo = peer_geo;
|
||||
this.peer_info = peer_info;
|
||||
|
||||
this.isAudioAllowed = isAudioAllowed;
|
||||
@@ -244,7 +242,6 @@ class RoomClient {
|
||||
let data = {
|
||||
room_id: this.room_id,
|
||||
peer_info: this.peer_info,
|
||||
peer_geo: this.peer_geo,
|
||||
};
|
||||
await this.join(data);
|
||||
this.initSockets();
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم