Repository navigation
Reach mainland China hosts through the general proxy's mainland zone - #102
Merged
Merged
Conversation
Without PROXY_POOL_MAINLAND, the plain var PROXY_MAINLAND_ZONE reuses the general proxies for a mainland host that timed out: the exit zone in each proxy username is switched to that zone. A username without a zone is left out, so nothing is retried and no budget is spent. The var is set to CN.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
website2markdown | 518aad5 | Nov 21 2026, 12:35 PM |
This was referenced Nov 21, 2026
Digidai
added a commit
that referenced
this pull request
Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
A mainland China host that times out is retried through a proxy that exits in mainland China (#101). Until now that needed its own credentials in
PROXY_POOL_MAINLAND. With the plain varPROXY_MAINLAND_ZONE, the general proxies are reused instead: the exit zone in each proxy username (..._zone_US) is switched to that zone.PROXY_POOL_MAINLANDstill wins when it names a proxy.wrangler.tomlsetsPROXY_MAINLAND_ZONE = "CN"./adminshows the mainland card as active when either setting is present.This is a trial
Not verified before merge, because the proxy credentials exist only in production:
After deploy, the
proxy_pool_mainlandrow inprovider_attempts_dailyand the conversion log show which of these holds. If the zone does not work, the var comes out again; the cost until then is the 20-second retry that production had before #101.Known limit either way: the proxy path speaks TLS 1.3 only, and 15 of 31 mainland https hosts probed offer TLS 1.2 at most.
Verification
npx vitest run: 951 tests pass. Typecheck passes for the Worker andweb/.wrangler.tomlparses with the new[vars]table; the Worker had no plain vars before.