1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Initial work on desktop sharing.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-06 16:05:48 -07:00
parent 98f2950c00
commit cc78d0aac5
9 changed files with 1333 additions and 99 deletions

File diff suppressed because one or more lines are too long

View file

@ -57,11 +57,12 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
obj.socket.onerror = function (e) { /* console.error(e); */ }
obj.socket.onclose = obj.xxOnSocketClosed;
obj.xxStateChange(1);
//obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: url2 });
var rurl = '*' + domainUrl + 'meshrelay.ashx?p=' + obj.protocol + '&nodeid=' + nodeid + '&id=' + obj.tunnelid;
if ((rauthCookie != null) && (rauthCookie != '')) { rurl += ('&rauth=' + rauthCookie); }
obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: rurl, usage: obj.protocol });
//obj.debug('Agent Redir Start: ' + url);
if (obj.meshserver != null) {
var rurl = '*' + domainUrl + 'meshrelay.ashx?p=' + obj.protocol + '&nodeid=' + nodeid + '&id=' + obj.tunnelid;
if ((rauthCookie != null) && (rauthCookie != '')) { rurl += ('&rauth=' + rauthCookie); }
obj.meshserver.send({ action: 'msg', type: 'tunnel', nodeid: obj.nodeid, value: rurl, usage: obj.protocol });
//obj.debug('Agent Redir Start: ' + url);
}
}
obj.xxOnSocketConnected = function () {

File diff suppressed because one or more lines are too long