Fix recursive config stringing

This commit is contained in:
Evert Prants 2019-01-11 04:36:45 +02:00
parent a6a51a24a6
commit 4617883f44
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -53,7 +53,7 @@ function getKeys (obj, vals) {
keys['rtmp.url'] = 'rtmp://' + vals.rtmp.host + vals.rtmp.mount
keys['rtmp.key'] = vals.rtmp.key
} 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) {
keys[key + '.' + i] = ks[i]
}