diff --git a/agents/MeshCmd-signed.exe b/agents/MeshCmd-signed.exe index 3e2195ca..a37c0d64 100644 Binary files a/agents/MeshCmd-signed.exe and b/agents/MeshCmd-signed.exe differ diff --git a/agents/MeshCmd64-signed.exe b/agents/MeshCmd64-signed.exe index d12e8e12..df0cf839 100644 Binary files a/agents/MeshCmd64-signed.exe and b/agents/MeshCmd64-signed.exe differ diff --git a/agents/meshcmd.js b/agents/meshcmd.js index 2fae4b10..fca177c3 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -2039,12 +2039,13 @@ function startRouter() { options.headers = { 'host': options.host, 'x-meshauth': Buffer.from(settings.username, 'binary').toString('base64') + ',' + Buffer.from(settings.password, 'binary').toString('base64') }; } } - } else { options.headers = { 'x-meshauth': '*' }; } // Request inner authentication + } else { options.headers = { 'host': options.host, 'x-meshauth': '*' }; } // Request inner authentication if (settings.loginkey) { xurlargs.push('key=' + settings.loginkey); } if (xurlargs.length > 0) { options.path += '?' + xurlargs.join('&'); } } catch (e) { console.log("Unable to parse \"serverUrl\"."); process.exit(1); return; } debug(1, "Connecting to " + options.host + "."); + debug(1, "Connection options: " + JSON.stringify(options) + "."); options.checkServerIdentity = onVerifyServer; options.rejectUnauthorized = false; settings.websocket = http.request(options);