only update domain

This commit is contained in:
arasseo.
2025-05-26 15:33:34 +07:00
committed by Koitharu
parent e5118f5266
commit 3afb446564
2 changed files with 4 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ class DoHManager(
).build()
DoHProvider.ZERO_MS -> DnsOverHttps.Builder().client(bootstrapClient)
.url("https://0ms.dev/dns-query".toHttpUrl())
.url("https://v.recipes/dns-query".toHttpUrl())
.resolvePublicAddresses(true)
.build()
}

View File

@@ -8,17 +8,17 @@ import okhttp3.Request
class ZeroMsProxyInterceptor : BaseImageProxyInterceptor() {
override suspend fun onInterceptImageRequest(request: ImageRequest, url: HttpUrl): ImageRequest {
if (url.host == "x.0ms.dev" || url.host == "0ms.dev") {
if (url.host == "v.recipes") {
return request
}
val newUrl = ("https://x.0ms.dev/q70/$url").toHttpUrl()
val newUrl = ("https://v.recipes/i/$url").toHttpUrl()
return request.newBuilder()
.data(newUrl)
.build()
}
override suspend fun onInterceptPageRequest(request: Request): Request {
val newUrl = ("https://x.0ms.dev/q70/${request.url}").toHttpUrl()
val newUrl = ("https://v.recipes/i/${request.url}").toHttpUrl()
return request.newBuilder()
.url(newUrl)
.build()