bugfix
This commit is contained in:
parent
35bd82c04b
commit
4b1ed54cdf
|
@ -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] = {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue