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 committed Aug 26, 2024
1 parent e3b24e7 commit 8ac9236
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 @@ -149,6 +149,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 8ac9236

Please sign in to comment.