Formatting
This commit is contained in:
@@ -26,9 +26,9 @@ fun OkHttpClient.Builder.dohCloudflare() = dns(
|
||||
InetAddress.getByName("2606:4700:4700::1111"),
|
||||
InetAddress.getByName("2606:4700:4700::1001"),
|
||||
InetAddress.getByName("2606:4700:4700::0064"),
|
||||
InetAddress.getByName("2606:4700:4700::6400")
|
||||
InetAddress.getByName("2606:4700:4700::6400"),
|
||||
)
|
||||
.build()
|
||||
.build(),
|
||||
)
|
||||
|
||||
fun OkHttpClient.Builder.dohGoogle() = dns(
|
||||
@@ -38,9 +38,9 @@ fun OkHttpClient.Builder.dohGoogle() = dns(
|
||||
InetAddress.getByName("8.8.4.4"),
|
||||
InetAddress.getByName("8.8.8.8"),
|
||||
InetAddress.getByName("2001:4860:4860::8888"),
|
||||
InetAddress.getByName("2001:4860:4860::8844")
|
||||
InetAddress.getByName("2001:4860:4860::8844"),
|
||||
)
|
||||
.build()
|
||||
.build(),
|
||||
)
|
||||
|
||||
// AdGuard "Default" DNS works too but for the sake of making sure no site is blacklisted,
|
||||
@@ -52,9 +52,9 @@ fun OkHttpClient.Builder.dohAdGuard() = dns(
|
||||
InetAddress.getByName("94.140.14.140"),
|
||||
InetAddress.getByName("94.140.14.141"),
|
||||
InetAddress.getByName("2a10:50c0::1:ff"),
|
||||
InetAddress.getByName("2a10:50c0::2:ff")
|
||||
InetAddress.getByName("2a10:50c0::2:ff"),
|
||||
)
|
||||
.build()
|
||||
.build(),
|
||||
)
|
||||
|
||||
fun OkHttpClient.Builder.dohQuad9() = dns(
|
||||
@@ -64,7 +64,7 @@ fun OkHttpClient.Builder.dohQuad9() = dns(
|
||||
InetAddress.getByName("9.9.9.9"),
|
||||
InetAddress.getByName("149.112.112.112"),
|
||||
InetAddress.getByName("2620:fe::fe"),
|
||||
InetAddress.getByName("2620:fe::9")
|
||||
InetAddress.getByName("2620:fe::9"),
|
||||
)
|
||||
.build()
|
||||
.build(),
|
||||
)
|
||||
|
||||
@@ -79,7 +79,7 @@ suspend fun Call.await(): Response {
|
||||
if (continuation.isCancelled) return
|
||||
continuation.resumeWithException(e)
|
||||
}
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
continuation.invokeOnCancellation {
|
||||
|
||||
Reference in New Issue
Block a user