fix read rtcConfig.json must be parsed as JSON..

This commit is contained in:
schlagmichdoch 2023-03-06 00:16:33 +01:00
parent cc78b34d2e
commit 1bc23dc4b3

View file

@ -57,7 +57,7 @@ if (process.argv.includes('--auto-restart')) {
} }
const rtcConfig = process.env.RTC_CONFIG const rtcConfig = process.env.RTC_CONFIG
? fs.readFileSync(process.env.RTC_CONFIG, 'utf8') ? JSON.parse(fs.readFileSync(process.env.RTC_CONFIG, 'utf8'))
: { : {
"sdpSemantics": "unified-plan", "sdpSemantics": "unified-plan",
"iceServers": [ "iceServers": [