Repository navigation
docs: 重写「地址与国家」,补上手动填写(hub v1.8.2) - #11
Merged
Merged
Conversation
`/config/nodes` 那一节整段写的是旧行为,hub v1.8.2 之后每一条都反了: - 旧文说「地址是 agent 报什么、hub 看到什么,没有手动填写的入口」——现在编辑框 底部有「地址与地区」,IPv4 / IPv6 / 国家·地区都能手填,留空为自动 - 旧文说国家按「hub 看到的连接来源地址」查,所以网关做了透明代理时国家按代理 出口算——现在按节点**自己**的公网地址查(网卡 v4 → 网卡 v6 → 连接来源), 都不公网就不查,内网地址不发给 ipinfo - 旧文说 NAT 时出口地址「也会列出来,排在最前」——现在每族最多一条:手填 → 网卡上的公网地址 → 同族网卡是内网地址时的出口;同族已有公网地址或没有网卡 地址时,连接来源都不显示 新写的内容分三节:**显示哪几个地址**(含每条规则的两种例外、悬停看来源)、 **国家码怎么来的**(三级顺序、v4 优先于 v6 的理由、跟着机器不跟着代理走、 重试与每小时一次的出站额度)、**手动填写**(三个字段各替换什么、校验与规范 形式、什么时候该填)。 顺带在[反向代理](/install/reverse-proxy)那一节补一句:国家的首选地址是节点 网卡上的公网地址,只有网卡上没有公网地址时才轮到连接来源——所以 `X-Forwarded-For` / `CF-Connecting-IP` 配错只影响这种节点。原句本身不算错, 但读者容易顺推出「国家看连接来源」,那已经不成立了。 注意 FAQ 里「节点地址是内网 IP,或者国家不对」那段(a105bb0,9-18 从上游文档 对齐时进的)当时就写着「在编辑节点里手动填 IPv4、IPv6 或国家/地区」——那时我们 的 hub 还没有这几个字段,文档比代码早了 11 天。这次实现补上,两边才一致。
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
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.
hub v1.8.2 把「地址与国家」的行为改了(上游 monitor-probe#20 + monitor-probe#55),
/config/nodes那一节写的还是旧行为,现在每一条都反了:ipinfo.io改了什么
/config/nodes的「地址与国家」整节重写,分三节:/install/reverse-proxy补一句:国家的首选地址是节点网卡上的公网地址,只有网卡上没有公网地址时才轮到连接来源,所以X-Forwarded-For/CF-Connecting-IP没配只影响那种节点。原句不算错,但读者容易顺推出「国家看连接来源」,那已经不成立了。nav.ts:/config/nodes的 desc 与 keywords 补上「手动填写 / 出口 / 网卡 / 透明代理 / ipv4 / ipv6」。一处早就存在的文档与实现不一致(本次顺带补平)
reference/faq.mdx的「节点地址是内网 IP,或者国家不对」那段(a105bb0,9-18 从上游文档对齐时进的)当时就写着「在编辑节点里手动填 IPv4、IPv6 或国家/地区」——那时我们的 hub 还没有这几个字段,文档比代码早了 11 天。这次实现补上,两边才一致。本次没有改那段(它现在是对的),链接指向的#地址与国家也仍然解析。校验
npm run lint0 warning 0 error;npm run build通过(21 个路由预渲染)id)——零失效,#国家码怎么来的也在内/config/nodes(本地vite preview起 dist):新分节、表格与列表都渲染正常