From 42ac445ec5114f65a49872d5d0f303c57d221b67 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Tue, 2 Jul 2024 13:07:59 +0200 Subject: [PATCH] Ignore TURN servers with transport TCP or TLS with libjuice --- src/impl/icetransport.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/impl/icetransport.cpp b/src/impl/icetransport.cpp index f53768640..2ceb91c72 100644 --- a/src/impl/icetransport.cpp +++ b/src/impl/icetransport.cpp @@ -155,6 +155,11 @@ void IceTransport::addIceServer(IceServer server) { return; } + if (server.relayType != IceServer::RelayType::TurnUdp) { + PLOG_WARNING << "TURN transports TCP and TLS are not supported with libjuice"; + return; + } + if (mTurnServersAdded >= MAX_TURN_SERVERS_COUNT) return;