Skip to content

Commit 3319ff4

Browse files
authored
fix: limit default WebRTC STUN servers to 4x (#2615)
Using 5x or more causes the following error to be printed in the console so only use 4x servers: ``` WebRTC: Using five or more STUN/TURN servers slows down discovery ```
1 parent e1f0b30 commit 3319ff4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
/**
2-
* STUN servers help clients discover their own public IPs
2+
* STUN servers help clients discover their own public IPs.
3+
*
4+
* Using five or more servers causes warnings to be printed so
5+
* ensure we limit it to max x4
36
*
47
* @see https://gist.github.com/mondain/b0ec1cf5f60ae726202e
58
*/
69
export const DEFAULT_ICE_SERVERS = [
710
'stun:stun.l.google.com:19302',
8-
'stun:stun1.l.google.com:19302',
9-
'stun:stun2.l.google.com:19302',
10-
'stun:stun3.l.google.com:19302',
11-
'stun:stun4.l.google.com:19302',
1211
'stun:global.stun.twilio.com:3478',
1312
'stun:stun.cloudflare.com:3478',
14-
'stun:stun.services.mozilla.com:3478',
15-
'stun:stun.1und1.de:3478'
13+
'stun:stun.services.mozilla.com:3478'
1614
]

0 commit comments

Comments
 (0)