Fix recursive config stringing
This commit is contained in:
parent
a6a51a24a6
commit
4617883f44
@ -53,7 +53,7 @@ function getKeys (obj, vals) {
|
|||||||
keys['rtmp.url'] = 'rtmp://' + vals.rtmp.host + vals.rtmp.mount
|
keys['rtmp.url'] = 'rtmp://' + vals.rtmp.host + vals.rtmp.mount
|
||||||
keys['rtmp.key'] = vals.rtmp.key
|
keys['rtmp.key'] = vals.rtmp.key
|
||||||
} else if (typeof vals[key] === 'object') {
|
} else if (typeof vals[key] === 'object') {
|
||||||
let ks = getKeys(defvals[key], vals[key])
|
let ks = getKeys(obj[key], vals[key])
|
||||||
for (let i in ks) {
|
for (let i in ks) {
|
||||||
keys[key + '.' + i] = ks[i]
|
keys[key + '.' + i] = ks[i]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user