Add existing CIRA connection exception from periodic AMT scanning. This to alleviate issue when AMT CIRA status unintentionally reset due to TCP check failure.

Add existing CIRA connection exception from periodic AMT scanning. This to alleviate issue when AMT CIRA status unintentionally reset due to TCP check failure.

jsastriawan committed Feb 10, 2020 at 09:21 UTC e94c5c6138df3a87a0ab2a5bb0f59bdb16de2783
1 file changed +2 -1
amtscanner.js
+2 -1
@@ -166,7 +166,8 @@ module.exports.CreateAmtScanner = function (parent) {
166 if (err == null && docs.length > 0) {
167 for (var i in docs) {
168 var doc = docs[i], host = doc.host.toLowerCase();
169 - if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost')) {
169 + var cira = obj.parent.mpsserver.ciraConnections[doc._id]
170 + if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (cira==null || cira==undefined)) {
171 var scaninfo = obj.scanTable[doc._id];
172 if (scaninfo == undefined) {
173 var tag = obj.nextTag++;