From f2e1ec1a7ba88e474bd0201cdee6ca74118daae0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 13:20:08 -0600 Subject: [PATCH] parse true/false correctly --- bin/telebitd.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/telebitd.js b/bin/telebitd.js index cd4a265..2c96579 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -131,6 +131,11 @@ function serveControls() { // opts.body.forEach(function (opt) { var parts = opt.split(/:/); + if ('true' === parts[1]) { + parts[1] = true; + } else if ('false' === parts[1]) { + parts[1] = false; + } conf[parts[0]] = parts[1]; }); if (!state.config.relay || !state.config.email || !state.config.agreeTos) {