Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: limit default WebRTC STUN servers to 4x #2615

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions packages/transport-webrtc/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/**
* STUN servers help clients discover their own public IPs
* STUN servers help clients discover their own public IPs.
*
* Using five or more servers causes warnings to be printed so
* ensure we limit it to max x4
*
* @see https://gist.github.com/mondain/b0ec1cf5f60ae726202e
*/
export const DEFAULT_ICE_SERVERS = [
'stun:stun.l.google.com:19302',
'stun:stun1.l.google.com:19302',
'stun:stun2.l.google.com:19302',
'stun:stun3.l.google.com:19302',
'stun:stun4.l.google.com:19302',
'stun:global.stun.twilio.com:3478',
'stun:stun.cloudflare.com:3478',
'stun:stun.services.mozilla.com:3478',
'stun:stun.1und1.de:3478'
'stun:stun.services.mozilla.com:3478'
]
Loading