mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
CIRA fix.
This commit is contained in:
parent
88b38f9c32
commit
8fd7327aea
4 changed files with 47 additions and 25 deletions
|
@ -44,7 +44,7 @@ module.exports.CreateAmtManager = function(parent) {
|
|||
// React to nodes connecting and disconnecting
|
||||
if (event.action == 'nodeconnect') {
|
||||
if ((event.conn & 14) != 0) { // connectType: Bitmask, 1 = MeshAgent, 2 = Intel AMT CIRA, 4 = Intel AMT local, 8 = Intel AMT Relay, 16 = MQTT
|
||||
if ((event.conn & 2) == 0) return // Debug: Only look at CIRA connections *****************************
|
||||
//if ((event.conn & 2) == 0) return // Debug: Only look at CIRA connections *****************************
|
||||
|
||||
// We have an OOB connection to Intel AMT, update our information
|
||||
var dev = obj.amtDevices[event.nodeid];
|
||||
|
@ -265,7 +265,7 @@ module.exports.CreateAmtManager = function(parent) {
|
|||
}
|
||||
|
||||
function attemptLocalConnectResponse(stack, name, responses, status) {
|
||||
console.log('attemptLocalConnectResponse', status);
|
||||
//console.log('attemptLocalConnectResponse', status);
|
||||
|
||||
// Release active connection to this host.
|
||||
delete obj.activeLocalConnections[stack.wsman.comm.host];
|
||||
|
@ -285,7 +285,7 @@ module.exports.CreateAmtManager = function(parent) {
|
|||
dev.aquired.user = stack.wsman.comm.user;
|
||||
dev.aquired.pass = stack.wsman.comm.pass;
|
||||
dev.aquired.lastContact = Date.now();
|
||||
dev.aquired.tls = stack.wsman.comm.xtls;
|
||||
if (dev.conntype == 1) { dev.aquired.tls = stack.wsman.comm.xtls; } // Only set the TLS state if on local mode. When using CIRA, this is auto-detected.
|
||||
if (stack.wsman.comm.xtls == 1) { dev.aquired.hash = stack.wsman.comm.xtlsCertificate.fingerprint.split(':').join('').toLowerCase(); } else { delete dev.aquired.hash; }
|
||||
//console.log(dev.nodeid, dev.name, dev.host, dev.aquired);
|
||||
UpdateDevice(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue