Added amtscanner option to settings for #3139.
Ylian Saint-Hilaire committed
Sep 15, 2021 at 18:44 UTC
a75af8aa4406713f0f940256557d78385a5443be
2 files changed
+4
-2
meshcentral-config-schema.json
+2
@@ -111,6 +111,8 @@
111
"noAgentUpdate": { "type": "integer", "default": 0, "description": "Set to 1 to present the server from updating any agent." },
112
"agentUpdateSystem": { "type": "integer", "default": 1, "description": "When set to 2, all agents that need to be updated will use the meshcore.js update system. With the default value of 1, the native update system is used." },
113
"temporaryAgentUpdate": { "type": "boolean", "default": true, "description": "Set to false to not allow temporary agents to be updated." },
114
+ "amtScanner": { "type": "boolean", "default": true, "description": "Set to false to disable Intel AMT scanning on the local network, this is already disabled in WAN mode." },
115
+ "meshScanner": { "type": "boolean", "default": true, "description": "Set to false to disable agent multicast scanning on the local network, this is already disabled in WAN mode." },
116
"meshErrorLogPath": { "type": "string" },
117
"npmPath": { "type": "string" },
118
"npmProxy": { "type": "string", "format": "uri" },
meshcentral.js
+2
-2
@@ -1569,8 +1569,8 @@ function CreateMeshCentralServer(config, args) {
1569
1570
// Setup the Intel AMT local network scanner
1571
if (obj.args.wanonly != true) {
1572
- obj.amtScanner = require('./amtscanner.js').CreateAmtScanner(obj).start();
1573
- obj.meshScanner = require('./meshscanner.js').CreateMeshScanner(obj).start();
1572
+ if (obj.args.amtscanner != true) { obj.amtScanner = require('./amtscanner.js').CreateAmtScanner(obj).start(); }
1573
+ if (obj.args.meshscanner != true) { obj.meshScanner = require('./meshscanner.js').CreateMeshScanner(obj).start(); }
1574
}
1575
1576
// Setup and start the MPS server