Force relays only if remote user is not a Signal Connection
Co-authored-by: Jim Gustafson <jim@signal.org>
This commit is contained in:
parent
ddf182b452
commit
c7652a3c28
1 changed files with 5 additions and 5 deletions
|
@ -137,7 +137,7 @@ import {
|
||||||
import { isNormalNumber } from '../util/isNormalNumber';
|
import { isNormalNumber } from '../util/isNormalNumber';
|
||||||
import type { AciString, ServiceIdString } from '../types/ServiceId';
|
import type { AciString, ServiceIdString } from '../types/ServiceId';
|
||||||
import { isServiceIdString } from '../types/ServiceId';
|
import { isServiceIdString } from '../types/ServiceId';
|
||||||
import { isInSystemContacts } from '../util/isInSystemContacts';
|
import { isSignalConnection } from '../util/getSignalConnections';
|
||||||
import { toAdminKeyBytes } from '../util/callLinks';
|
import { toAdminKeyBytes } from '../util/callLinks';
|
||||||
import {
|
import {
|
||||||
getCallLinkAuthCredentialPresentation,
|
getCallLinkAuthCredentialPresentation,
|
||||||
|
@ -3198,11 +3198,11 @@ export class CallingClass {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the peer is not in the user's system contacts, force IP hiding.
|
// If the peer is not a Signal Connection, force IP hiding.
|
||||||
const isContactUntrusted = !isInSystemContacts(conversation.attributes);
|
const isContactUntrusted = !isSignalConnection(conversation.attributes);
|
||||||
|
|
||||||
// proritize ice servers with IPs to avoid DNS
|
// Prioritize ice servers with IPs to avoid DNS only include
|
||||||
// only include hostname with urlsWithIps
|
// hostname with urlsWithIps.
|
||||||
let iceServers = iceServerConfigToList(iceServerConfig);
|
let iceServers = iceServerConfigToList(iceServerConfig);
|
||||||
|
|
||||||
if (this._iceServerOverride) {
|
if (this._iceServerOverride) {
|
||||||
|
|
Loading…
Reference in a new issue