ActivityPub-federated video streaming platform using P2P directly in your web browser
Update STUN server lists
Chocobozzz9f978831728e
diff --git a/client/src/standalone/player/src/shared/common/utils.ts b/client/src/standalone/player/src/shared/common/utils.tsindex e483db2fb0..85f55c572a 100644--- a/client/src/standalone/player/src/shared/common/utils.ts+++ b/client/src/standalone/player/src/shared/common/utils.ts@@ -1,3 +1,5 @@+import { shuffle } from '@peertube/peertube-core-utils'+export function toTitleCase (str: string) {return str.charAt(0).toUpperCase() + str.slice(1)}@@ -17,6 +19,6 @@ export function bytes (value: number) {export function getRtcConfig (stunServers: string[]) {return {- iceServers: stunServers.map(s => ({ urls: s }))+ iceServers: shuffle(stunServers.map(s => ({ urls: s }))).slice(0, 2)}}diff --git a/config/default.yaml b/config/default.yamlindex 2e0611ca05..aa57fd9b0c 100644--- a/config/default.yaml+++ b/config/default.yaml@@ -505,10 +505,11 @@ stats:enabled: truewebrtc:- # 1 or 2 STUN servers are sufficientstun_servers:- - 'stun:stunserver2024.stunprotocol.org'+ - 'stun:stunserver2025.stunprotocol.org'- 'stun:stun.framasoft.org'+ - 'stun.ekiga.net'+ - 'stun.freeswitch.org'nsfw_flags_settings:# Allow logged-in/anonymous users to have a more granular control over their NSFW policydiff --git a/config/production.yaml.example b/config/production.yaml.exampleindex bf4f08ec49..67d79b760c 100644--- a/config/production.yaml.example+++ b/config/production.yaml.example@@ -503,10 +503,11 @@ stats:enabled: truewebrtc:- # 1 or 2 STUN servers are sufficientstun_servers:- - 'stun:stunserver2024.stunprotocol.org'+ - 'stun:stunserver2025.stunprotocol.org'- 'stun:stun.framasoft.org'+ - 'stun.ekiga.net'+ - 'stun.freeswitch.org'nsfw_flags_settings:# Allow logged-in/anonymous users to have a more granular control over their NSFW policy