mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed exception when notifying a device from a domain that does not exist.
This commit is contained in:
parent
3c03bd3b07
commit
c33cc21350
2 changed files with 9 additions and 2 deletions
|
@ -2176,7 +2176,8 @@ function CreateMeshCentralServer(config, args) {
|
||||||
const meshSplit = meshid.split('/');
|
const meshSplit = meshid.split('/');
|
||||||
if (meshSplit.length != 3) return;
|
if (meshSplit.length != 3) return;
|
||||||
const domainId = meshSplit[1];
|
const domainId = meshSplit[1];
|
||||||
const mailserver = obj.config.domains[domainId].mailserver;;
|
if (obj.config.domains[domainId] == null) return;
|
||||||
|
const mailserver = obj.config.domains[domainId].mailserver;
|
||||||
if (mailserver == null) return;
|
if (mailserver == null) return;
|
||||||
|
|
||||||
// Get the device group for this device
|
// Get the device group for this device
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
"sample-config-advanced.json"
|
"sample-config-advanced.json"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@yetzt/nedb": "^1.8.0",
|
||||||
|
"archiver": "^4.0.2",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"cbor": "~5.2.0",
|
"cbor": "~5.2.0",
|
||||||
"compression": "^1.7.4",
|
"compression": "^1.7.4",
|
||||||
|
@ -44,10 +46,14 @@
|
||||||
"express-handlebars": "^5.3.5",
|
"express-handlebars": "^5.3.5",
|
||||||
"express-ws": "^4.0.0",
|
"express-ws": "^4.0.0",
|
||||||
"ipcheck": "^0.1.0",
|
"ipcheck": "^0.1.0",
|
||||||
|
"loadavg-windows": "^1.1.1",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
|
"mongodb": "^4.1.0",
|
||||||
"multiparty": "^4.2.1",
|
"multiparty": "^4.2.1",
|
||||||
"@yetzt/nedb": "^1.8.0",
|
|
||||||
"node-forge": "^1.0.0",
|
"node-forge": "^1.0.0",
|
||||||
|
"node-windows": "^0.1.4",
|
||||||
|
"otplib": "^10.2.3",
|
||||||
|
"saslprep": "^1.0.3",
|
||||||
"ws": "^5.2.3",
|
"ws": "^5.2.3",
|
||||||
"yauzl": "^2.10.0"
|
"yauzl": "^2.10.0"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue