From 4e5c40bad2e48408c03ebfd30c45cdf1d0b7b9cf Mon Sep 17 00:00:00 2001 From: dank074 Date: Wed, 23 Apr 2025 16:34:54 -0500 Subject: [PATCH] disable udp voice connections --- src/webrtc/opcodes/SelectProtocol.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webrtc/opcodes/SelectProtocol.ts b/src/webrtc/opcodes/SelectProtocol.ts index dfd9714f..4a2ee85d 100644 --- a/src/webrtc/opcodes/SelectProtocol.ts +++ b/src/webrtc/opcodes/SelectProtocol.ts @@ -35,6 +35,10 @@ export async function onSelectProtocol( payload.d, ) as SelectProtocolSchema; + // UDP protocol not currently supported. Maybe in the future? + if (data.protocol !== "webrtc") + return this.close(4000, "only webrtc protocol supported currently"); + const response = await mediaServer.onOffer( this.webRtcClient, data.sdp!,