remove comments and console.log meshctrl.js
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
May 28, 2024 at 18:26 UTC
2b3c329a549fbef3be87bf7884f2930e2c7b58ed
1 file changed
-2
meshctrl.js
-2
@@ -1673,12 +1673,10 @@ function serverConnect() {
1673
var u = settings.xxurl.replace('wss://', 'https://').replace('/control.ashx', '/meshagents');
1674
if (u.indexOf('?') > 0) { u += '&'; } else { u += '?'; }
1675
u += 'id=' + args.type + '&meshid=' + args.id;
1676
- // check, whether the optional installflags have not been set; include them only when set
1676
if (args.installflags) {
1677
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; }
1678
u += '&installflags=' + args.installflags;
1679
}
1681
- console.log(u);
1680
const options = { rejectUnauthorized: false, checkServerIdentity: onVerifyServer }
1681
const fs = require('fs');
1682
const https = require('https');