Skip to content

Commit

Permalink
Merge pull request #848 from SpaceTimee/master
Browse files Browse the repository at this point in the history
Fix 421 error
  • Loading branch information
Notsfsssf authored Dec 4, 2024
2 parents d1e3e7c + 9931b5b commit 0ca5b43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/json/host.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app-api.pixiv.net": "210.140.131.199",
"oauth.secure.pixiv.net": "210.140.131.219",
"app-api.pixiv.net": "210.140.139.155",
"oauth.secure.pixiv.net": "210.140.139.155",
"i.pximg.net": "210.140.92.144",
"s.pximg.net": "210.140.92.143",
"doh": "doh.dns.sb"
Expand Down
4 changes: 2 additions & 2 deletions lib/er/hoster.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import 'package:path/path.dart' as Path;
class Hoster {
static Map<String, dynamic> _map = Map();
static Map<String, dynamic> _constMap = {
"app-api.pixiv.net": "210.140.131.199",
"oauth.secure.pixiv.net": "210.140.131.219",
"app-api.pixiv.net": "210.140.139.155",
"oauth.secure.pixiv.net": "210.140.139.155",
"i.pximg.net": "210.140.92.149",
"s.pximg.net": "210.140.92.143",
"doh": "doh.dns.sb",
Expand Down
2 changes: 1 addition & 1 deletion lib/network/account_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AccountClient {
AccountClient() {
String time = getIsoDate();
this.httpClient = Dio()
..options.baseUrl = "https://210.140.131.219"
..options.baseUrl = "https://210.140.139.155"
..options.headers = {
"X-Client-Time": time,
"X-Client-Hash": getHash(time + hashSalt),
Expand Down
2 changes: 1 addition & 1 deletion lib/network/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ApiClient {
}

httpClient = Dio()
..options.baseUrl = "https://210.140.131.199"
..options.baseUrl = "https://210.140.139.155"
..options.headers = {
"X-Client-Time": time,
"X-Client-Hash": getHash(time + hashSalt),
Expand Down
2 changes: 1 addition & 1 deletion lib/network/oauth_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class OAuthClient {
String time = getIsoDate();
this.httpClient = Dio()
// 🎵Liella!-ノンフィクション!!🎵
..options.baseUrl = "https://210.140.131.219"
..options.baseUrl = "https://210.140.139.155"
..options.headers = {
"X-Client-Time": time,
"X-Client-Hash": getHash(time + hashSalt),
Expand Down

0 comments on commit 0ca5b43

Please sign in to comment.