Syntax fixes.
Ylian Saint-Hilaire committed
Nov 5, 2020 at 02:29 UTC
24c68c8f579e5a2f859819c455ff24f6fa98998f
1 file changed
+3
-3
meshcentral.js
+3
-3
@@ -2107,7 +2107,7 @@ function CreateMeshCentralServer(config, args) {
2107
obj.meshToolsBinaries[this.toolname].hashx = this.hashx;
2108
obj.meshToolsBinaries[this.toolname].path = this.agentpath;
2109
obj.meshToolsBinaries[this.toolname].dlname = this.dlname;
2110
- obj.meshToolsBinaries[this.toolname].url = ('https://' + obj.certificates.CommonName + ':' + ((typeof obj.args.aliasport == 'number') ? obj.args.aliasport : obj.args.port) + '/meshagents?meshaction=' + this.dlname;
2110
+ obj.meshToolsBinaries[this.toolname].url = 'https://' + obj.certificates.CommonName + ':' + ((typeof obj.args.aliasport == 'number') ? obj.args.aliasport : obj.args.port) + '/meshagents?meshaction=' + this.dlname;
2111
var stats = null;
2112
try { stats = obj.fs.statSync(this.agentpath); } catch (e) { }
2113
if (stats != null) { obj.meshToolsBinaries[this.toolname].size = stats.size; }
@@ -2148,7 +2148,7 @@ function CreateMeshCentralServer(config, args) {
2148
obj.meshAgentInstallScripts[this.info.id].hash = this.hash.digest('hex');
2149
obj.meshAgentInstallScripts[this.info.id].path = this.agentpath;
2150
obj.meshAgentInstallScripts[this.info.id].data = this.xdata;
2151
- obj.meshAgentInstallScripts[this.info.id].url = ('https://' + obj.certificates.CommonName + ':' + ((typeof obj.args.aliasport == 'number') ? obj.args.aliasport : obj.args.port) + '/meshagents?script=' + this.info.id;
2151
+ obj.meshAgentInstallScripts[this.info.id].url = 'https://' + obj.certificates.CommonName + ':' + ((typeof obj.args.aliasport == 'number') ? obj.args.aliasport : obj.args.port) + '/meshagents?script=' + this.info.id;
2152
var stats = null;
2153
try { stats = obj.fs.statSync(this.agentpath); } catch (e) { }
2154
if (stats != null) { obj.meshAgentInstallScripts[this.info.id].size = stats.size; }
@@ -2213,7 +2213,7 @@ function CreateMeshCentralServer(config, args) {
2213
archcount++;
2214
obj.meshAgentBinaries[archid] = Object.assign({}, obj.meshAgentsArchitectureNumbers[archid]);
2215
obj.meshAgentBinaries[archid].path = agentpath;
2216
- obj.meshAgentBinaries[archid].url = ('http://' + obj.certificates.CommonName + ':' + ((typeof obj.args.aliasport == 'number') ? obj.args.aliasport : obj.args.port) + '/meshagents?id=' + archid;
2216
+ obj.meshAgentBinaries[archid].url = 'http://' + obj.certificates.CommonName + ':' + ((typeof obj.args.aliasport == 'number') ? obj.args.aliasport : obj.args.port) + '/meshagents?id=' + archid;
2217
obj.meshAgentBinaries[archid].size = stats.size;
2218
2219
// If this is a windows binary, pull binary information