mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-11 23:13:21 -05:00
Fixed amtscanner.js crash when MPS server is not present.
This commit is contained in:
parent
a6ed676450
commit
dd346b80aa
@ -166,7 +166,7 @@ module.exports.CreateAmtScanner = function (parent) {
|
|||||||
if (err == null && docs.length > 0) {
|
if (err == null && docs.length > 0) {
|
||||||
for (var i in docs) {
|
for (var i in docs) {
|
||||||
var doc = docs[i], host = doc.host.toLowerCase();
|
var doc = docs[i], host = doc.host.toLowerCase();
|
||||||
const ciraConnection = obj.parent.mpsserver.ciraConnections[doc._id];
|
const ciraConnection = obj.parent.mpsserver ? obj.parent.mpsserver.ciraConnections[doc._id] : null;
|
||||||
if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (ciraConnection == null)) {
|
if ((host != '127.0.0.1') && (host != '::1') && (host.toLowerCase() != 'localhost') && (ciraConnection == null)) {
|
||||||
var scaninfo = obj.scanTable[doc._id];
|
var scaninfo = obj.scanTable[doc._id];
|
||||||
if (scaninfo == undefined) {
|
if (scaninfo == undefined) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.4.8-v",
|
"version": "0.4.8-x",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
Loading…
Reference in New Issue
Block a user