Fix for amtScanner option, #3139

Ylian Saint-Hilaire committed Sep 16, 2021 at 09:43 UTC 02e8f747b8742dd6a08b4534e526c35a02bf27e5
1 file changed +2 -2
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 - 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(); }
1572 + if (obj.args.amtscanner != false) { obj.amtScanner = require('./amtscanner.js').CreateAmtScanner(obj).start(); }
1573 + if (obj.args.meshscanner != false) { obj.meshScanner = require('./meshscanner.js').CreateMeshScanner(obj).start(); }
1574 }
1575
1576 // Setup and start the MPS server