diff --git a/include/rtc/configuration.hpp b/include/rtc/configuration.hpp index 873061f91..13393dd56 100644 --- a/include/rtc/configuration.hpp +++ b/include/rtc/configuration.hpp @@ -77,6 +77,7 @@ struct RTC_CPP_EXPORT Configuration { bool disableAutoNegotiation = false; bool disableAutoGathering = false; bool forceMediaTransport = false; + bool disableFingerprintVerification = false; // Port range uint16_t portRangeBegin = 1024; diff --git a/src/impl/peerconnection.cpp b/src/impl/peerconnection.cpp index 3133fe328..33c7d44d2 100644 --- a/src/impl/peerconnection.cpp +++ b/src/impl/peerconnection.cpp @@ -426,6 +426,9 @@ bool PeerConnection::checkFingerprint(const std::string &fingerprint) const { if (!mRemoteDescription || !mRemoteDescription->fingerprint()) return false; + if (config.disableFingerprintVerification) + return true; + auto expectedFingerprint = mRemoteDescription->fingerprint()->value; if (expectedFingerprint == fingerprint) { PLOG_VERBOSE << "Valid fingerprint \"" << fingerprint << "\"";