Formatting

This commit is contained in:
arkon
2022-04-08 16:44:23 -04:00
parent 2dfafa387b
commit 5afff31f72
197 changed files with 481 additions and 483 deletions
@@ -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 {