Fixed exception when notifying a device from a domain that does not exist.
Ylian Saint-Hilaire committed
Feb 15, 2022 at 14:50 UTC
c33cc213503e3a2777d827ce897dbefca7f1fd5e
2 files changed
+9
-2
meshcentral.js
+2
-1
@@ -2176,7 +2176,8 @@ function CreateMeshCentralServer(config, args) {
2176
const meshSplit = meshid.split('/');
2177
if (meshSplit.length != 3) return;
2178
const domainId = meshSplit[1];
2179
- const mailserver = obj.config.domains[domainId].mailserver;;
2179
+ if (obj.config.domains[domainId] == null) return;
2180
+ const mailserver = obj.config.domains[domainId].mailserver;
2181
if (mailserver == null) return;
2182
2183
// Get the device group for this device
package.json
+7
-1
@@ -36,6 +36,8 @@
36
"sample-config-advanced.json"
37
],
38
"dependencies": {
39
+ "@yetzt/nedb": "^1.8.0",
40
+ "archiver": "^4.0.2",
41
"body-parser": "^1.19.0",
42
"cbor": "~5.2.0",
43
"compression": "^1.7.4",
@@ -44,10 +46,14 @@
46
"express-handlebars": "^5.3.5",
47
"express-ws": "^4.0.0",
48
"ipcheck": "^0.1.0",
49
+ "loadavg-windows": "^1.1.1",
50
"minimist": "^1.2.5",
51
+ "mongodb": "^4.1.0",
52
"multiparty": "^4.2.1",
49
- "@yetzt/nedb": "^1.8.0",
53
"node-forge": "^1.0.0",
54
+ "node-windows": "^0.1.4",
55
+ "otplib": "^10.2.3",
56
+ "saslprep": "^1.0.3",
57
"ws": "^5.2.3",
58
"yauzl": "^2.10.0"
59
},