This commit is contained in:
AJ ONeal 2018-06-13 12:16:09 -06:00
parent 58f30f0a6c
commit 2569e9e0d2
1 changed files with 2 additions and 4 deletions

View File

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