mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-22 11:26:33 -04:00
remove comments and console.log meshctrl.js
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
17cf36edd9
commit
2b3c329a54
@ -1673,12 +1673,10 @@ function serverConnect() {
|
|||||||
var u = settings.xxurl.replace('wss://', 'https://').replace('/control.ashx', '/meshagents');
|
var u = settings.xxurl.replace('wss://', 'https://').replace('/control.ashx', '/meshagents');
|
||||||
if (u.indexOf('?') > 0) { u += '&'; } else { u += '?'; }
|
if (u.indexOf('?') > 0) { u += '&'; } else { u += '?'; }
|
||||||
u += 'id=' + args.type + '&meshid=' + args.id;
|
u += 'id=' + args.type + '&meshid=' + args.id;
|
||||||
// check, whether the optional installflags have not been set; include them only when set
|
|
||||||
if (args.installflags) {
|
if (args.installflags) {
|
||||||
if ((typeof parseInt(args.installflags) != 'number') || isNaN(parseInt(args.installflags)) || (parseInt(args.installflags) < 0) || (parseInt(args.installflags) > 2)) { console.log("Invalid Installflags."); process.exit(1); return; }
|
if ((typeof parseInt(args.installflags) != 'number') || isNaN(parseInt(args.installflags)) || (parseInt(args.installflags) < 0) || (parseInt(args.installflags) > 2)) { console.log("Invalid Installflags."); process.exit(1); return; }
|
||||||
u += '&installflags=' + args.installflags;
|
u += '&installflags=' + args.installflags;
|
||||||
}
|
}
|
||||||
console.log(u);
|
|
||||||
const options = { rejectUnauthorized: false, checkServerIdentity: onVerifyServer }
|
const options = { rejectUnauthorized: false, checkServerIdentity: onVerifyServer }
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const https = require('https');
|
const https = require('https');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user