Skip to content

Commit

Permalink
support disableFingerprintVerification for disable fingerprint checks…
Browse files Browse the repository at this point in the history
… in PeerConnection.
  • Loading branch information
xicilion committed May 11, 2024
1 parent 7060347 commit 3944b93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/rtc/configuration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct RTC_CPP_EXPORT Configuration {
bool disableAutoNegotiation = false;
bool disableAutoGathering = false;
bool forceMediaTransport = false;
bool skipCheckFingerprint = false;
bool disableFingerprintVerification = false;

// Port range
uint16_t portRangeBegin = 1024;
Expand Down
2 changes: 1 addition & 1 deletion src/impl/peerconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ bool PeerConnection::checkFingerprint(const std::string &fingerprint) const {
if (!mRemoteDescription || !mRemoteDescription->fingerprint())
return false;

if (config.skipCheckFingerprint)
if (config.disableFingerprintVerification)
return true;

auto expectedFingerprint = mRemoteDescription->fingerprint()->value;
Expand Down

0 comments on commit 3944b93

Please sign in to comment.