Small fixes to AmtScanner.js

This commit is contained in:
Ylian Saint-Hilaire 2020-02-10 09:42:01 -08:00
parent 02a7cd45ec
commit 0735cf8047

View File

@ -166,8 +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();
var cira = obj.parent.mpsserver.ciraConnections[doc._id]
if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (cira==null || cira==undefined)) {
const ciraConnection = obj.parent.mpsserver.ciraConnections[doc._id];
if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (ciraConnection == null)) {
var scaninfo = obj.scanTable[doc._id];
if (scaninfo == undefined) {
var tag = obj.nextTag++;