fix meshcentral assistant downloads
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
db06c0c925
commit
0b0f2999db
|
@ -5351,7 +5351,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
var xdomain = (domain.dns == null) ? domain.id : '';
|
var xdomain = (domain.dns == null) ? domain.id : '';
|
||||||
if (xdomain != '') xdomain += '/';
|
if (xdomain != '') xdomain += '/';
|
||||||
var meshsettings = '';
|
var meshsettings = '';
|
||||||
if (req.query.id != '10006' && req.query.ac != '4'){ // If MeshCentral Assistant Monitor Mode, DONT INCLUDE SERVER DETAILS!
|
if (req.query.ac != '4'){ // If MeshCentral Assistant Monitor Mode, DONT INCLUDE SERVER DETAILS!
|
||||||
meshsettings += '\r\nMeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
|
meshsettings += '\r\nMeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
|
||||||
if (obj.args.lanonly != true) { meshsettings += 'MeshServer=wss://' + serverName + ':' + httpsPort + '/' + xdomain + 'agent.ashx\r\n'; } else {
|
if (obj.args.lanonly != true) { meshsettings += 'MeshServer=wss://' + serverName + ':' + httpsPort + '/' + xdomain + 'agent.ashx\r\n'; } else {
|
||||||
meshsettings += 'MeshServer=local\r\n';
|
meshsettings += 'MeshServer=local\r\n';
|
||||||
|
|
Loading…
Reference in New Issue