mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
calling: update getIceServers to use new turn routing endpoint
Co-authored-by: Adel Lahlou <adel@signal.com>
This commit is contained in:
@@ -2613,12 +2613,20 @@ export class CallingClass {
|
||||
const isContactUntrusted = !isInSystemContacts(conversation.attributes);
|
||||
|
||||
const callSettings = {
|
||||
// only include hostname with urlsWithIps
|
||||
// proritize ice servers with IPs to avoid DNS
|
||||
iceServers: [
|
||||
{
|
||||
hostname: iceServer.hostname,
|
||||
username: iceServer.username,
|
||||
password: iceServer.password,
|
||||
urls: (iceServer.urlsWithIps ?? []).slice(),
|
||||
},
|
||||
{
|
||||
hostname: '',
|
||||
username: iceServer.username,
|
||||
password: iceServer.password,
|
||||
urls: iceServer.urls.slice(),
|
||||
urls: (iceServer.urls ?? []).slice(),
|
||||
},
|
||||
],
|
||||
hideIp: shouldRelayCalls || isContactUntrusted,
|
||||
|
||||
Reference in New Issue
Block a user