detect loopback and coturn option

This commit is contained in:
vorotamoroz
2026-06-05 09:44:17 +01:00
parent 6b7816d334
commit 60f21eb9d2
7 changed files with 55 additions and 13 deletions
+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;
}