Skip to content

Commit

Permalink
Merge pull request #1172 from xicilion/enableufrag
Browse files Browse the repository at this point in the history
Remove checking remote description has different ICE credentials
  • Loading branch information
paullouisageneau authored May 25, 2024
2 parents 1787735 + 430b4ab commit d9befcf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/impl/peerconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,11 +879,6 @@ void PeerConnection::validateRemoteDescription(const Description &description) {
if (activeMediaCount == 0)
throw std::invalid_argument("Remote description has no active media");

if (auto local = localDescription(); local && local->iceUfrag() && local->icePwd())
if (*description.iceUfrag() == *local->iceUfrag() &&
*description.icePwd() == *local->icePwd())
throw std::logic_error("Got the local description as remote description");

PLOG_VERBOSE << "Remote description looks valid";
}

Expand Down

0 comments on commit d9befcf

Please sign in to comment.