Skip to content

Commit

Permalink
fix: cert pinning failing for GET:/api-version
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed Dec 11, 2023
1 parent 5ee8f0d commit 78e5c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data class KaliumConfigs(
val lowerKeyPackageLimits: Boolean = false,
val lowerKeyingMaterialsUpdateThreshold: Boolean = false,
val developmentApiEnabled: Boolean = false,
val ignoreSSLCertificatesForUnboundCalls: Boolean = true,
val ignoreSSLCertificatesForUnboundCalls: Boolean = false,
val guestRoomLink: Boolean = true,
val selfDeletingMessages: Boolean = true,
val wipeOnCookieInvalid: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ actual fun defaultHttpEngine(
certificatePinning: CertificatePinning
): HttpClientEngine = OkHttp.create {
OkHttpSingleton.createNew {
if (certificatePinning.isNotEmpty()) {
if (certificatePinning.isNotEmpty() && !ignoreSSLCertificates) {
val certPinner = CertificatePinner.Builder().apply {
certificatePinning.forEach { (cert, hosts) ->
hosts.forEach { host ->
Expand Down

0 comments on commit 78e5c02

Please sign in to comment.