From c683c278a2645db858f66e56dc6aaaf41c2d3b66 Mon Sep 17 00:00:00 2001 From: Luke Moch <19363185+mochman@users.noreply.github.com> Date: Sun, 5 Mar 2023 18:30:48 -0500 Subject: [PATCH] Parse user json file for own STUN/TURN servers --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": [