ソースを参照

Merge pull request #1172 from xicilion/enableufrag

Remove checking remote description has different ICE credentials
Paul-Louis Ageneau 1 年間 前
コミット
d9befcf9a1
1 ファイル変更0 行追加5 行削除
  1. 0 5
      src/impl/peerconnection.cpp

+ 0 - 5
src/impl/peerconnection.cpp

@@ -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";
 }