Skip to content

Commit

Permalink
fix: cert pinning failing for GET:/api-version (#2301) (#2302)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamad Jaara <mohamad.jaara@wire.com>
  • Loading branch information
github-actions[bot] and MohamadJaara authored Dec 14, 2023
1 parent 568fde8 commit 99c66b3
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 @@ -46,7 +46,7 @@ actual fun defaultHttpEngine(
certificatePinning: CertificatePinning
): HttpClientEngine = OkHttp.create {
OkhttpClientFactory {
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 99c66b3

Please sign in to comment.