Fixed server exception when node.host is not set.
Ylian Saint-Hilaire committed
Jan 9, 2022 at 11:41 UTC
102a951b1ec22765a6af800f0ec9482b2b67eefd
1 file changed
+1
amtscanner.js
+1
@@ -214,6 +214,7 @@ module.exports.CreateAmtScanner = function (parent) {
214
215
// Look for all Intel AMT computers that may be locally reachable and poll their presence
216
obj.performSpecificScan = function (node) {
217
+ if ((node == null) || (node.host == null)) return;
218
var host = node.host.toLowerCase();
219
const ciraConnections = obj.parent.mpsserver ? obj.parent.mpsserver.GetConnectionToNode(node._id, null, true) : null; // See if any OOB connections are present
220
if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (ciraConnections == null)) {