diff --git a/index.js b/index.js index 9e7fd71..9177d2a 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,7 @@ if (process.argv.includes('--auto-restart')) { } 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", "iceServers": [