mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed Intel AMT TLS.
This commit is contained in:
parent
95e8b87509
commit
8f2046984d
8 changed files with 23 additions and 15 deletions
|
@ -1022,7 +1022,8 @@ function startMeshCommander() {
|
|||
} else {
|
||||
// If TLS is going to be used, setup a TLS socket
|
||||
var tls = require('tls');
|
||||
var tlsoptions = { host: webargs.host, port: webargs.port, secureProtocol: ((webargs.tls1only == 1) ? 'TLSv1_method' : 'SSLv23_method'), rejectUnauthorized: false };
|
||||
var tlsoptions = { host: webargs.host, port: webargs.port, rejectUnauthorized: false };
|
||||
if (webargs.tls1only == 1) { tlsoptions.secureProtocol = 'TLSv1_method'; }
|
||||
ws.forwardclient = tls.connect(tlsoptions, function () { debug(1, 'Connected TLS to ' + webargs.host + ':' + webargs.port + '.'); this.pipe(this.ws, { end: false }); this.ws.pipe(this, { end: false }); });
|
||||
ws.forwardclient.on('error', function () { debug(1, 'TLS connection error to ' + webargs.host + ':' + webargs.port + '.'); try { this.ws.end(); } catch (e) { } });
|
||||
ws.forwardclient.ws = ws;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue