Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OkHttpClient.Builder network pinning on Android #8376

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Fixes
  • Loading branch information
yschimke committed Apr 24, 2024
commit d47c07cf970755d69541889cdd7f77adbfc00758
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import java.net.UnknownHostException
import java.util.concurrent.CountDownLatch
import mockwebserver3.MockResponse
import mockwebserver3.junit4.MockWebServerRule
import okhttp3.AsyncDns
import okhttp3.Dns
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.android.internal.AsyncDns
import okhttp3.tls.HandshakeCertificates
import okhttp3.tls.HeldCertificate
import okio.IOException
Expand Down Expand Up @@ -131,7 +131,7 @@ class AndroidDnsTest {
val latch = CountDownLatch(1)

// assumes an IPv4 address
AndroidDns.IPv4.query(
AndroidDns(AndroidDns.DnsClass.IPV4).query(
hostname = hostname,
originatingCall = null,
callback =
Expand Down