Updated KVM Toast to be compatible with RDP
Bryan Roe committed
May 17, 2020 at 01:59 UTC
a15bf3f83d20a9bcbba51d523b1a6596dcc0801d
1 file changed
+2
-2
agents/meshcore.js
+2
-2
@@ -1551,7 +1551,7 @@ function createMeshCore(agent) {
1551
this.ws.write(JSON.stringify({ ctrlChannel: '102938', type: 'console', msg: null, msgid: 0 }));
1552
if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 1)) {
1553
// User Notifications is required
1554
- try { require('toaster').Toast('MeshCentral', this.ws.httprequest.username + " started a remote desktop session."); } catch (ex) { }
1554
+ try { require('toaster').Toast('MeshCentral', this.ws.httprequest.username + " started a remote desktop session.", tsid); } catch (ex) { }
1555
}
1556
if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 0x40)) {
1557
// Connection Bar is required
@@ -1595,7 +1595,7 @@ function createMeshCore(agent) {
1595
if (this.httprequest.consent && (this.httprequest.consent & 1)) {
1596
// User Notifications is required
1597
MeshServerLog("Started remote desktop with toast notification (" + this.httprequest.remoteaddr + ")", this.httprequest);
1598
- try { require('toaster').Toast('MeshCentral', this.httprequest.username + " started a remote desktop session."); } catch (ex) { }
1598
+ try { require('toaster').Toast('MeshCentral', this.httprequest.username + " started a remote desktop session.", tsid); } catch (ex) { }
1599
} else {
1600
MeshServerLog("Started remote desktop without notification (" + this.httprequest.remoteaddr + ")", this.httprequest);
1601
}