File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -858,10 +858,11 @@ void PeerConnection::validateRemoteDescription(const Description &description) {
858
858
if (activeMediaCount == 0 )
859
859
throw std::invalid_argument (" Remote description has no active media" );
860
860
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");
865
866
866
867
PLOG_VERBOSE << " Remote description looks valid" ;
867
868
}
You can’t perform that action at this time.
0 commit comments