Parse user json file for own STUN/TURN servers

This commit is contained in:
Luke Moch 2023-03-05 18:30:48 -05:00
parent b2f6a75c99
commit c683c278a2
No known key found for this signature in database
GPG key ID: FE30D4019C1865EF

View file

@ -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": [