Skip to content

make the china check strong - #7026

Closed
LoliLin wants to merge 1 commit into
HMCL-dev:mainfrom
LoliLin:patch-1
Closed

LoliLin wants to merge 1 commit into
HMCL-dev:mainfrom
LoliLin:patch-1

Conversation

@LoliLin

@LoliLin LoliLin commented Oct 20, 2026

Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot added the 10+ label Oct 20, 2026
return s == 403 || s == 451
|| r.uri().toString().contains("unavailable-in-region");
} catch (Exception e) {
return false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be true here.

@W9pi3cZ1

Copy link
Copy Markdown

复用claude的chinese check🤣(不过我这边国内访问www.anthropic.com不会被拦下来,,,
image

.followRedirects(HttpClient.Redirect.ALWAYS)
.build()
.send(HttpRequest.newBuilder()
.uri(URI.create("https://www.anthropic.com"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even in unsupported regions, Anthropic's home page can be accessed. You should use this api: https://claude.com/api/country

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{"country":"SG"} in cn lol

@Glavo Glavo closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants