detect loopback and coturn option

This commit is contained in:
vorotamoroz committed 2026-06-05 09:44:17 +01:00
1 parent 6b7816d334
commit 60f21eb9d2
7 files changed
+55 -13

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ export async function stopLocalRelayIfStarted(started: boolean): Promise<void> {
}
export async function maybeStartCoturn(turnServers: string): Promise<boolean> {
if (turnServers.includes("localhost") || turnServers.includes("127.0.0.1")) {
if (turnServers.includes("localhost") || turnServers.includes("127.0.0.1") || turnServers.includes("[::1]")) {
await startCoturn();
return true;
}