Remove STUN server, increase ICE candidate pool

This commit is contained in:
2025-11-15 14:37:30 +01:00
parent 273b6349c6
commit 217b84701f

View File

@@ -6,10 +6,7 @@ const API_URL = 'https://api.ronde.vu';
const RTC_CONFIG = { const RTC_CONFIG = {
iceServers: [ iceServers: [
{ // TCP transport to TURN server - VPN blocks UDP connections to TURN
urls: "stun:stun.relay.metered.ca:80",
},
// TCP transport only - VPN blocks UDP relay
{ {
urls: "turn:standard.relay.metered.ca:80?transport=tcp", urls: "turn:standard.relay.metered.ca:80?transport=tcp",
username: "c53a9c971da5e6f3bc959d8d", username: "c53a9c971da5e6f3bc959d8d",
@@ -22,7 +19,8 @@ const RTC_CONFIG = {
}, },
], ],
// Force relay to avoid direct connection attempts through VPN // Force relay to avoid direct connection attempts through VPN
iceTransportPolicy: 'relay' iceTransportPolicy: 'relay',
iceCandidatePoolSize: 10
}; };
export default function App() { export default function App() {