Skip to content

Commit

Permalink
fix: IP直连情况下的421问题
Browse files Browse the repository at this point in the history
- 修改了 API_HOST 和 AUTH_HOST 的对应 IP 地址以确保连接正常。
- 解决可能因旧 IP 导致的网络连接问题。
  • Loading branch information
10331 committed Dec 14, 2024
1 parent e671135 commit 9e36021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/mrl/pixiv/di/network/NetworkUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ internal const val IMAGE_HOST = "i.pximg.net"
internal const val STATIC_IMAGE_HOST = "s.pximg.net"
internal const val AUTH_HOST = "oauth.secure.pixiv.net"
internal val hostMap: Map<String, String> = mapOf(
API_HOST to "210.140.131.199",
AUTH_HOST to "210.140.131.219",
API_HOST to "210.140.139.155",
AUTH_HOST to "210.140.139.155",
IMAGE_HOST to "210.140.92.144",
STATIC_IMAGE_HOST to "210.140.92.143",
"doh" to "doh.dns.sb",
Expand Down

0 comments on commit 9e36021

Please sign in to comment.