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

Fixed connection options, not sent unless needed.

This commit is contained in:
Ylian Saint-Hilaire 2019-12-16 10:39:51 -08:00
parent afce306026
commit 4fb6a77d94
2 changed files with 7 additions and 3 deletions

View file

@ -1271,7 +1271,9 @@ function createMeshCore(agent) {
// Look for a TSID
var tsid = null;
if ((this.httprequest.xoptions != null) && (typeof this.httprequest.xoptions.tsid == 'number')) { tsid = this.httprequest.xoptions.tsid; }
if (require('MeshAgent')._tsid != null) { tsid = require('MeshAgent')._tsid; }
//if (require('MeshAgent')._tsid != null) { tsid = require('MeshAgent')._tsid; }
//sendConsoleText('tsid: ' + tsid);
//require('MeshAgent')._tsid = tsid;
// Remote desktop using native pipes
this.httprequest.desktop = { state: 0, kvm: mesh.getRemoteDesktopStream(tsid), tunnel: this };