From 102a951b1ec22765a6af800f0ec9482b2b67eefd Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 9 Jan 2022 11:41:58 -0800 Subject: [PATCH] Fixed server exception when node.host is not set. --- amtscanner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/amtscanner.js b/amtscanner.js index 9742f802..688cd52d 100644 --- a/amtscanner.js +++ b/amtscanner.js @@ -214,6 +214,7 @@ module.exports.CreateAmtScanner = function (parent) { // Look for all Intel AMT computers that may be locally reachable and poll their presence obj.performSpecificScan = function (node) { + if ((node == null) || (node.host == null)) return; var host = node.host.toLowerCase(); const ciraConnections = obj.parent.mpsserver ? obj.parent.mpsserver.GetConnectionToNode(node._id, null, true) : null; // See if any OOB connections are present if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (ciraConnections == null)) {