Added blank line as start of .msh file.

Ylian Saint-Hilaire committed Nov 11, 2020 at 17:55 UTC 7b8742de5e9d6ce147ff37e66e3f758df4bd34fd
1 file changed +3 -3
webserver.js
+3 -3
@@ -4200,7 +4200,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4200 // Build the agent connection URL. If we are using a sub-domain or one with a DNS, we need to craft the URL correctly.
4201 var xdomain = (domain.dns == null) ? domain.id : '';
4202 if (xdomain != '') xdomain += '/';
4203 - var meshsettings = 'MeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
4203 + var meshsettings = '\r\nMeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
4204 if (obj.args.lanonly != true) { meshsettings += 'MeshServer=wss://' + serverName + ':' + httpsPort + '/' + xdomain + 'agent.ashx\r\n'; } else {
4205 meshsettings += 'MeshServer=local\r\n';
4206 if ((obj.args.localdiscovery != null) && (typeof obj.args.localdiscovery.key == 'string') && (obj.args.localdiscovery.key.length > 0)) { meshsettings += 'DiscoveryKey=' + obj.args.localdiscovery.key + '\r\n'; }
@@ -4503,7 +4503,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4503 // Build the agent connection URL. If we are using a sub-domain or one with a DNS, we need to craft the URL correctly.
4504 var xdomain = (domain.dns == null) ? domain.id : '';
4505 if (xdomain != '') xdomain += '/';
4506 - var meshsettings = 'MeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
4506 + var meshsettings = '\r\nMeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
4507 var httpsPort = ((obj.args.aliasport == null) ? obj.args.port : obj.args.aliasport); // Use HTTPS alias port is specified
4508 if (obj.args.agentport != null) { httpsPort = obj.args.agentport; } // If an agent only port is enabled, use that.
4509 if (obj.args.agentaliasport != null) { httpsPort = obj.args.agentaliasport; } // If an agent alias port is specified, use that.
@@ -4601,7 +4601,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
4601 // Build the agent connection URL. If we are using a sub-domain or one with a DNS, we need to craft the URL correctly.
4602 var xdomain = (domain.dns == null) ? domain.id : '';
4603 if (xdomain != '') xdomain += '/';
4604 - var meshsettings = 'MeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
4604 + var meshsettings = '\r\nMeshName=' + mesh.name + '\r\nMeshType=' + mesh.mtype + '\r\nMeshID=0x' + meshidhex + '\r\nServerID=' + serveridhex + '\r\n';
4605 var httpsPort = ((obj.args.aliasport == null) ? obj.args.port : obj.args.aliasport); // Use HTTPS alias port is specified
4606 if (obj.args.agentport != null) { httpsPort = obj.args.agentport; } // If an agent only port is enabled, use that.
4607 if (obj.args.agentaliasport != null) { httpsPort = obj.args.agentaliasport; } // If an agent alias port is specified, use that.