Skip to content

Commit

Permalink
Merge pull request #1222 from paullouisageneau/ignore-turn-tcp-tls-li…
Browse files Browse the repository at this point in the history
…bjuice

Ignore TURN servers with transport TCP or TLS with libjuice
  • Loading branch information
paullouisageneau authored Jul 2, 2024
2 parents 730a1cd + 42ac445 commit 67e88a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/impl/icetransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 67e88a6

Please sign in to comment.