Skip to content

Commit 7060347

Browse files
committed
Support for ignoring fingerprint checks in PeerConnection.
1 parent 919f06e commit 7060347

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/rtc/configuration.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ struct RTC_CPP_EXPORT Configuration {
7777
bool disableAutoNegotiation = false;
7878
bool disableAutoGathering = false;
7979
bool forceMediaTransport = false;
80+
bool skipCheckFingerprint = false;
8081

8182
// Port range
8283
uint16_t portRangeBegin = 1024;

src/impl/peerconnection.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ bool PeerConnection::checkFingerprint(const std::string &fingerprint) const {
426426
if (!mRemoteDescription || !mRemoteDescription->fingerprint())
427427
return false;
428428

429+
if (config.skipCheckFingerprint)
430+
return true;
431+
429432
auto expectedFingerprint = mRemoteDescription->fingerprint()->value;
430433
if (expectedFingerprint == fingerprint) {
431434
PLOG_VERBOSE << "Valid fingerprint \"" << fingerprint << "\"";

0 commit comments

Comments
 (0)