mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-28 02:10:39 +00:00
fix read rtcConfig.json must be parsed as JSON..
This commit is contained in:
@@ -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": [
|
||||||
|
|||||||
Reference in New Issue
Block a user