From 1bc23dc4b3e393b7f739f7d9656a8e85a6758e6a Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Mon, 6 Mar 2023 00:16:33 +0100 Subject: [PATCH] fix read rtcConfig.json must be parsed as JSON.. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d7298a7..80ffe22 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,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": [