Updated MeshCMD to fix #3234

This commit is contained in:
Ylian Saint-Hilaire 2021-11-03 10:58:22 -07:00
parent ef6accd5ac
commit be104d819c
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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);