Browse Source

Disable the check for local and remote iceUfrag and icePwd in validateRemoteDescription.

xicilion 1 year ago
parent
commit
430b4ab2d3
3 changed files with 0 additions and 6 deletions
  1. 0 1
      include/rtc/description.hpp
  2. 0 2
      src/description.cpp
  3. 0 3
      src/impl/peerconnection.cpp

+ 0 - 1
include/rtc/description.hpp

@@ -59,7 +59,6 @@ public:
 	string typeString() const;
 	Role role() const;
 	string bundleMid() const;
-	string sessionId() const;
 	std::vector<string> iceOptions() const;
 	optional<string> iceUfrag() const;
 	optional<string> icePwd() const;

+ 0 - 2
src/description.cpp

@@ -201,8 +201,6 @@ string Description::bundleMid() const {
 	return "0";
 }
 
-string Description::sessionId() const { return mSessionId; }
-
 optional<string> Description::iceUfrag() const { return mIceUfrag; }
 
 std::vector<string> Description::iceOptions() const { return mIceOptions; }

+ 0 - 3
src/impl/peerconnection.cpp

@@ -858,9 +858,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->sessionId() == description.sessionId())
-		throw std::logic_error("Got the local description as remote description");
-
 	PLOG_VERBOSE << "Remote description looks valid";
 }