Add Google STUN servers for reliability

Added Google STUN servers alongside metered.ca for maximum
reliability. Google STUN always works and ensures basic NAT
traversal even if TURN servers fail.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-14 20:44:06 +01:00
parent c3045778eb
commit 83df6aeee3

View File

@@ -6,9 +6,14 @@ const API_URL = 'https://api.ronde.vu';
const RTC_CONFIG = { const RTC_CONFIG = {
iceServers: [ iceServers: [
// Google STUN - reliable and always works
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:stun1.l.google.com:19302' },
// Metered.ca STUN
{ {
urls: "stun:stun.relay.metered.ca:80", urls: "stun:stun.relay.metered.ca:80",
}, },
// Metered.ca TURN servers (for restrictive NATs)
{ {
urls: "turn:standard.relay.metered.ca:80", urls: "turn:standard.relay.metered.ca:80",
username: "e03a51621b4f11ffbed3addd", username: "e03a51621b4f11ffbed3addd",