Skip to content

Commit

Permalink
remove comments and console.log meshctrl.js
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed May 28, 2024
1 parent 17cf36e commit 2b3c329
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions meshctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1673,12 +1673,10 @@ function serverConnect() {
var u = settings.xxurl.replace('wss://', 'https://').replace('/control.ashx', '/meshagents');
if (u.indexOf('?') > 0) { u += '&'; } else { u += '?'; }
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 ((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;
}
console.log(u);
const options = { rejectUnauthorized: false, checkServerIdentity: onVerifyServer }
const fs = require('fs');
const https = require('https');
Expand Down

0 comments on commit 2b3c329

Please sign in to comment.