From 5445818fe19bdac16e0d490b5a97fe85e915f44f Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Sat, 4 Jan 2020 13:49:08 -0500 Subject: [PATCH] Only if plugins are enabled, add semver module --- meshcentral.js | 1 + 1 file changed, 1 insertion(+) diff --git a/meshcentral.js b/meshcentral.js index a6596b3b..7fa44d77 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -2178,6 +2178,7 @@ function mainStart() { if (config.settings.mqtt != null) { modules.push('aedes'); } // Add MQTT Modules if (config.settings.mongodb != null) { modules.push('mongodb'); } // Add MongoDB, official driver. if (config.settings.vault != null) { modules.push('node-vault'); } // Add official HashiCorp's Vault module. + if (config.settings.plugins != null) { modules.push('semver'); } // Required for version compat testing and update checks if ((config.settings.plugins != null) && (config.settings.plugins.proxy != null)) { modules.push('https-proxy-agent'); } // Required for HTTP/HTTPS proxy support else if (config.settings.xmongodb != null) { modules.push('mongojs'); } // Add MongoJS, old driver. if (config.smtp != null) { modules.push('nodemailer'); } // Add SMTP support