From 3cb92683b6697e5dc2f520d06e8b84dfe8c65ae1 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 30 Oct 2021 20:08:11 -0700 Subject: [PATCH] MeshCmd AmtUUID fix. --- agents/meshcmd.js | 8 +------- meshdesktopmultiplex.js | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/agents/meshcmd.js b/agents/meshcmd.js index d2b87368..71bb9243 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -1397,13 +1397,7 @@ function getTrustedHashes(amtMei, func, tag) { // Called to get the UUID of Intel AMT, start by setting up MicroLMS if we are doing the operation on the local computer function getAmtUuid() { - if (settings.hostname != null) - { - getAmtUuidEx(); - } else - { - if ((settings.hostname == '127.0.0.1') || (settings.hostname.toLowerCase() == 'localhost')) { settings.noconsole = true; startLms(getAmtUuidEx); return; } else { getAmtUuidEx(); } - } + if ((settings.hostname == null) || (settings.hostname == '127.0.0.1') || (settings.hostname.toLowerCase() == 'localhost')) { settings.noconsole = true; startLms(getAmtUuidEx); return; } else { getAmtUuidEx(); } } // Fetch the computer's UUID by fetching the CIM_ComputerSystemPackage WSMAN object. diff --git a/meshdesktopmultiplex.js b/meshdesktopmultiplex.js index 13fb3c38..6b3dcea8 100644 --- a/meshdesktopmultiplex.js +++ b/meshdesktopmultiplex.js @@ -787,7 +787,7 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, func) { obj.sendToAllInputViewers(data); break; default: - console.log('Un-handled agent command: ' + command); + console.log('Un-handled agent command: ' + command + ', length: ' + cmdsize); break; } }