Fixed exception when notifying a device from a domain that does not exist.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-15 14:50:58 -08:00
parent 3c03bd3b07
commit c33cc21350
2 changed files with 9 additions and 2 deletions

View File

@ -2176,7 +2176,8 @@ function CreateMeshCentralServer(config, args) {
const meshSplit = meshid.split('/');
if (meshSplit.length != 3) return;
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;
// Get the device group for this device

View File

@ -36,6 +36,8 @@
"sample-config-advanced.json"
],
"dependencies": {
"@yetzt/nedb": "^1.8.0",
"archiver": "^4.0.2",
"body-parser": "^1.19.0",
"cbor": "~5.2.0",
"compression": "^1.7.4",
@ -44,10 +46,14 @@
"express-handlebars": "^5.3.5",
"express-ws": "^4.0.0",
"ipcheck": "^0.1.0",
"loadavg-windows": "^1.1.1",
"minimist": "^1.2.5",
"mongodb": "^4.1.0",
"multiparty": "^4.2.1",
"@yetzt/nedb": "^1.8.0",
"node-forge": "^1.0.0",
"node-windows": "^0.1.4",
"otplib": "^10.2.3",
"saslprep": "^1.0.3",
"ws": "^5.2.3",
"yauzl": "^2.10.0"
},