mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improved MSTSC.js support.
This commit is contained in:
parent
14c08ce461
commit
61582dbd17
13 changed files with 169 additions and 7400 deletions
|
@ -2202,7 +2202,6 @@
|
|||
var newWindow = window.open(vncurl, 'mcnovnc/' + message.nodeid);
|
||||
newWindow.opener = null;
|
||||
} else if (message.tag == 'mstsc') {
|
||||
//var rdpurl = window.location.origin + domainUrl + 'mstsc/index.html?ws=wss%3A%2F%2F' + window.location.host + '%2Fmeshrelay.ashx%3Fauth%3D' + message.cookie;
|
||||
var rdpurl = window.location.origin + domainUrl + 'mstsc/index.html?ws=' + message.cookie;
|
||||
var node = getNodeFromId(message.nodeid);
|
||||
if (node != null) { rdpurl += '&name=' + encodeURIComponentEx(node.name); }
|
||||
|
@ -5375,7 +5374,7 @@
|
|||
|
||||
// MSTSC.js link
|
||||
if (((connectivity & 1) != 0) && (node.agent) && ((meshrights & 8) != 0) && ((features & 0x40000000) == 0)) {
|
||||
x += '<a href=# cmenu=rfbPortContextMenu id=mstscLink onclick=p10mstsc("' + node._id + '") title="' + "Launch RDP session to this device" + '.">' + "MSTSC" + '</a> ';
|
||||
x += '<a href=# cmenu=rfbPortContextMenu id=mstscLink onclick=p10mstsc("' + node._id + '") title="' + "Launch web-based RDP session to this device" + '.">' + "Web-RDP" + '</a> ';
|
||||
}
|
||||
|
||||
// MQTT options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue