Skip to content

Commit

Permalink
Merge pull request #662 from SpaceTimee/master
Browse files Browse the repository at this point in the history
Fix 421 error
  • Loading branch information
CeuiLiSA authored Dec 4, 2024
2 parents 6e5ee2b + be033fb commit 59d7327
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/ceui/lisa/fragments/FragmentWebView.java
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public URLConnection recursiveRequest(String path, Map<String, String> headers,
url = new URL(path);
conn = (HttpURLConnection) url.openConnection();
// 异步接口获取IP
String ip = "210.140.131.188";
String ip = "210.140.139.157";
if (ip != null) {
// 通过HTTPDNS获取IP成功,进行URL替换和HOST头设置
Log.d(TAG, "Get IP: " + ip + " for host: " + url.getHost() + " from HTTPDNS successfully!");
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/ceui/lisa/http/CloudFlareDns.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class CloudFlareDns(private val service: CloudFlareDNSService) : Dns {

when (hostname) {
"oauth.secure.pixiv.net" -> addresses.addAll(
listOf("210.140.131.209").map {
listOf("210.140.139.156").map {
InetAddress.getByName(
it
)
}
)
"app-api.pixiv.net" -> addresses.addAll(
listOf("210.140.131.208").map {
listOf("210.140.139.155").map {
InetAddress.getByName(
it
)
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/ceui/lisa/http/HttpDns.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public class HttpDns implements Dns {
*/

private static final String[] addresses = {
"210.140.131.188",
"210.140.131.218",
"210.140.131.187",
"210.140.131.189"
"210.140.139.155",
"210.140.139.156",
"210.140.139.157",
"210.140.139.158"
};
public static List<InetAddress> newDns = new ArrayList<>();
private static HttpDns sHttpDns = null;
Expand Down

0 comments on commit 59d7327

Please sign in to comment.