Skip to content

Commit 430b4ab

Browse files
committed
Disable the check for local and remote iceUfrag and icePwd in validateRemoteDescription.
1 parent 4a83d74 commit 430b4ab

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

include/rtc/description.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class RTC_CPP_EXPORT Description {
5959
string typeString() const;
6060
Role role() const;
6161
string bundleMid() const;
62-
string sessionId() const;
6362
std::vector<string> iceOptions() const;
6463
optional<string> iceUfrag() const;
6564
optional<string> icePwd() const;

src/description.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ string Description::bundleMid() const {
201201
return "0";
202202
}
203203

204-
string Description::sessionId() const { return mSessionId; }
205-
206204
optional<string> Description::iceUfrag() const { return mIceUfrag; }
207205

208206
std::vector<string> Description::iceOptions() const { return mIceOptions; }

src/impl/peerconnection.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,6 @@ 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->sessionId() == description.sessionId())
862-
throw std::logic_error("Got the local description as remote description");
863-
864861
PLOG_VERBOSE << "Remote description looks valid";
865862
}
866863

0 commit comments

Comments
 (0)