Browse Source

Ignore TURN servers with transport TCP or TLS with libjuice

Paul-Louis Ageneau 1 year ago
parent
commit
42ac445ec5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/impl/icetransport.cpp

+ 5 - 0
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;