Skip to content

Commit d9befcf

Browse files
Merge pull request #1172 from xicilion/enableufrag
Remove checking remote description has different ICE credentials
2 parents 1787735 + 430b4ab commit d9befcf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/impl/peerconnection.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -879,11 +879,6 @@ void PeerConnection::validateRemoteDescription(const Description &description) {
879879
if (activeMediaCount == 0)
880880
throw std::invalid_argument("Remote description has no active media");
881881

882-
if (auto local = localDescription(); local && local->iceUfrag() && local->icePwd())
883-
if (*description.iceUfrag() == *local->iceUfrag() &&
884-
*description.icePwd() == *local->icePwd())
885-
throw std::logic_error("Got the local description as remote description");
886-
887882
PLOG_VERBOSE << "Remote description looks valid";
888883
}
889884

0 commit comments

Comments
 (0)