From e94c5c6138df3a87a0ab2a5bb0f59bdb16de2783 Mon Sep 17 00:00:00 2001 From: jsastriawan Date: Mon, 10 Feb 2020 09:21:11 -0700 Subject: [PATCH] Add existing CIRA connection exception from periodic AMT scanning. This to alleviate issue when AMT CIRA status unintentionally reset due to TCP check failure. --- amtscanner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amtscanner.js b/amtscanner.js index 9179d90e..7ffb1bfa 100644 --- a/amtscanner.js +++ b/amtscanner.js @@ -166,7 +166,8 @@ module.exports.CreateAmtScanner = function (parent) { if (err == null && docs.length > 0) { for (var i in docs) { var doc = docs[i], host = doc.host.toLowerCase(); - if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost')) { + var cira = obj.parent.mpsserver.ciraConnections[doc._id] + if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (cira==null || cira==undefined)) { var scaninfo = obj.scanTable[doc._id]; if (scaninfo == undefined) { var tag = obj.nextTag++;