Update route.ts

If coturn is not enabled, just use stun server fix
pull/261/head
iamdoubz 9 months ago committed by GitHub
parent e4f2476f4c
commit 9e12929640
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,7 +14,7 @@ const turnsPort = process.env.TURNS_PORT || 5349
export async function POST(): Promise<NextResponse> { export async function POST(): Promise<NextResponse> {
if (!process.env.COTURN_ENABLED) { if (!process.env.COTURN_ENABLED) {
return NextResponse.json({ return NextResponse.json({
iceServers: [{ urls: 'stun:${stunHost}:${stunPort}' }], iceServers: [{ urls: `stun:${stunHost}:${stunPort}` }],
}) })
} }

Loading…
Cancel
Save