fix read rtcConfig.json must be parsed as JSON..
This commit is contained in:
parent
cc78b34d2e
commit
1bc23dc4b3
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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": [
|
||||||
|
|
Loading…
Reference in a new issue