Small fixes to AmtScanner.js

Ylian Saint-Hilaire committed Feb 10, 2020 at 09:42 UTC 0735cf8047196f1c4d8117a9b121b7053d3841ca
1 file changed +2 -2
amtscanner.js
+2 -2
@@ -166,8 +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 - var cira = obj.parent.mpsserver.ciraConnections[doc._id]
170 - if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (cira==null || cira==undefined)) {
169 + const ciraConnection = obj.parent.mpsserver.ciraConnections[doc._id];
170 + if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (ciraConnection == null)) {
171 var scaninfo = obj.scanTable[doc._id];
172 if (scaninfo == undefined) {
173 var tag = obj.nextTag++;