Skip to content

Commit 3a11fec

Browse files
Merge pull request #1171 from xicilion/skipCheckFingerprint
Add option to disable fingerprint validation
2 parents 919f06e + 3944b93 commit 3a11fec

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 disableFingerprintVerification = 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.disableFingerprintVerification)
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)