Skip to content
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
11 changes: 10 additions & 1 deletion src/rpc/dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,17 @@ const processWebRTCOpts = async (
);
const additionalIceServers: RTCIceServer[] = config.additionalIceServers.map(
(ice) => {
const iceUrls = [];
// always extend the list with tcp variants in order to facilitate cases
// where udp might be blocked
for (const iUrl of ice.urls) {
if (iUrl.endsWith('udp')) {
iceUrls.push(`${iUrl.slice(0, -3)}tcp`);
}
iceUrls.push(iUrl);
}
return {
urls: ice.urls,
urls: iceUrls,
credential: ice.credential,
username: ice.username,
};
Expand Down