Merge pull request #936 from jsastriawan/master

Add existing CIRA connection exception from periodic AMT scanning.
This commit is contained in:
Ylian Saint-Hilaire 2020-02-10 09:36:11 -08:00 committed by GitHub
commit a3158d7914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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++;