From 9e12929640c6bf92aa66b02b971d302a445aa8f0 Mon Sep 17 00:00:00 2001 From: iamdoubz <4871781+iamdoubz@users.noreply.github.com> Date: Fri, 4 Apr 2025 13:40:48 -0500 Subject: [PATCH] Update route.ts If coturn is not enabled, just use stun server fix --- src/app/api/ice/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/ice/route.ts b/src/app/api/ice/route.ts index f15da75..00e20fc 100644 --- a/src/app/api/ice/route.ts +++ b/src/app/api/ice/route.ts @@ -14,7 +14,7 @@ const turnsPort = process.env.TURNS_PORT || 5349 export async function POST(): Promise { if (!process.env.COTURN_ENABLED) { return NextResponse.json({ - iceServers: [{ urls: 'stun:${stunHost}:${stunPort}' }], + iceServers: [{ urls: `stun:${stunHost}:${stunPort}` }], }) }