From 2569e9e0d22b81132a48c23a491b2afc809dcff5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 13 Jun 2018 12:16:09 -0600 Subject: [PATCH] bugfix --- bin/telebitd.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/telebitd.js b/bin/telebitd.js index 0fa7893..20f28c2 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -153,14 +153,12 @@ function serveControls() { if ('undefined' !== typeof conf.telemetry) { state.config.telemetry = conf.telemetry; } - conf.servernames = (conf.servernames||'').split(/,/g); - conf.ports = (conf.ports||'').split(/,/g); - conf.servernames.forEach(function (key) { + (conf.servernames||[]).forEach(function (key) { if (!state.config.servernames[key]) { state.config.servernames[key] = {}; } }); - conf.ports.forEach(function (key) { + (conf.ports||[]).forEach(function (key) { if (!state.config.ports[key]) { state.config.ports[key] = {}; }