We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f9c75 commit cb287f2Copy full SHA for cb287f2
src/rpc/dial.ts
@@ -448,8 +448,17 @@ const processWebRTCOpts = async (
448
);
449
const additionalIceServers: RTCIceServer[] = config.additionalIceServers.map(
450
(ice) => {
451
+ const iceUrls = [];
452
+ // always extend the list with tcp variants in order to facilitate cases
453
+ // where udp might be blocked
454
+ for (const iUrl of ice.urls) {
455
+ if (iUrl.endsWith('udp')) {
456
+ iceUrls.push(`${iUrl.slice(0, -3)}tcp`);
457
+ }
458
+ iceUrls.push(iUrl);
459
460
return {
- urls: ice.urls,
461
+ urls: iceUrls,
462
credential: ice.credential,
463
username: ice.username,
464
};
0 commit comments