mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-05-04 05:29:15 -04:00
Parse user json file for own STUN/TURN servers
This commit is contained in:
parent
b2f6a75c99
commit
c683c278a2
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -52,7 +52,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…
Add table
Add a link
Reference in a new issue