Node.js based forum software built for the modern web
feat: allow isCluster, isPrimary, and jobsDisabled to be passed in as numbers in addition to string/bool
Julian Lamb5b188fd5393
diff --git a/src/prestart.js b/src/prestart.jsindex 8f89336b9a..6b1d1dfcc4 100644--- a/src/prestart.js+++ b/src/prestart.js@@ -65,7 +65,7 @@ function loadConfig(configFile) {castAsBool.forEach((prop) => {const value = nconf.get(prop);if (value !== undefined) {- nconf.set(prop, typeof value === 'boolean' ? value : String(value).toLowerCase() === 'true');+ nconf.set(prop, ['1', 1, 'true', true].includes(value));}});nconf.stores.env.readOnly = true;