Skip to content

Commit e98dd3e

Browse files
committed
Disable comparing local and remote iceUfrag and icePwd in validateRemoteDescription.
1 parent 919f06e commit e98dd3e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/impl/peerconnection.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,11 @@ void PeerConnection::validateRemoteDescription(const Description &description) {
858858
if (activeMediaCount == 0)
859859
throw std::invalid_argument("Remote description has no active media");
860860

861-
if (auto local = localDescription(); local && local->iceUfrag() && local->icePwd())
862-
if (*description.iceUfrag() == *local->iceUfrag() &&
863-
*description.icePwd() == *local->icePwd())
864-
throw std::logic_error("Got the local description as remote description");
861+
// In the WebRTC Direct protocol, we need to allow local and remote to use the same ufrag and pwd.
862+
// if (auto local = localDescription(); local && local->iceUfrag() && local->icePwd())
863+
// if (*description.iceUfrag() == *local->iceUfrag() &&
864+
// *description.icePwd() == *local->icePwd())
865+
// throw std::logic_error("Got the local description as remote description");
865866

866867
PLOG_VERBOSE << "Remote description looks valid";
867868
}

0 commit comments

Comments
 (0)