From 591b4526171e4a95f9cfa49bb3ae5bcca8ae73a4 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 11:50:46 -0600 Subject: [PATCH] bugfix --- bin/telebitd.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/telebitd.js b/bin/telebitd.js index 33c2aed..6b406b7 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -153,12 +153,14 @@ function serveControls() { if ('undefined' !== typeof conf.telemetry) { state.config.telemetry = conf.telemetry; } - Object.keys(conf.servernames).forEach(function (key) { + conf.servernames = (conf.servernames||'').split(/,/g); + conf.ports = (conf.ports||'').split(/,/g); + conf.servernames.forEach(function (key) { if (!state.config.servernames[key]) { state.config.servernames[key] = {}; } }); - Object.keys(conf.ports).forEach(function (key) { + conf.ports.forEach(function (key) { if (!state.config.ports[key]) { state.config.ports[key] = {}; }