disable udp voice connections

This commit is contained in:
dank074 2025-04-23 16:34:54 -05:00
parent 9e202803a9
commit 4e5c40bad2

View File

@ -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!,