This commit is contained in:
AJ ONeal 2018-06-13 11:50:46 -06:00
parent 2ebe80d4d1
commit 591b452617
1 changed files with 4 additions and 2 deletions

View File

@ -153,12 +153,14 @@ function serveControls() {
if ('undefined' !== typeof conf.telemetry) { if ('undefined' !== typeof conf.telemetry) {
state.config.telemetry = 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]) { if (!state.config.servernames[key]) {
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]) { if (!state.config.ports[key]) {
state.config.ports[key] = {}; state.config.ports[key] = {};
} }