Fixed amtscanner.js crash when MPS server is not present.
Ylian Saint-Hilaire committed
Feb 10, 2020 at 14:16 UTC
dd346b80aa9551bdf22fa15687684d29e037ba76
2 files changed
+2
-2
amtscanner.js
+1
-1
@@ -166,7 +166,7 @@ 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
- const ciraConnection = obj.parent.mpsserver.ciraConnections[doc._id];
169
+ const ciraConnection = obj.parent.mpsserver ? obj.parent.mpsserver.ciraConnections[doc._id] : null;
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) {
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "0.4.8-v",
3
+ "version": "0.4.8-x",
4
"keywords": [
5
"Remote Management",
6
"Intel AMT",