Repository navigation
docs: 反代页补充 X-Forwarded-For 对节点地址与国家码的影响 - #3
Merged
Merged
Conversation
面板对 NAT 节点优先显示连接来源的公网地址(monitor-probe/monitor#9),这个地址 与限流用的是同一个值。没有 X-Forwarded-For 时它是代理地址,NAT 节点看不到公网 地址、国家码也查不出;本地反代前再套 CDN 时它是边缘地址,面板会把边缘地址当成 节点的公网地址显示。两处说明补上这一点。
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.
概要
面板对 NAT 节点优先显示连接来源的公网地址(monitor-probe/monitor#9),这个地址和登录限流取的是同一个值(
X-Forwarded-For最后一跳),反代页此前只写了它对限流的影响。X-Forwarded-For:来源记成代理地址,NAT 节点看不到公网地址,国家码也查不出两处说明各补一句,配法不变(仍是让边缘写
CF-Connecting-IP、本地反代覆盖X-Forwarded-For)。「NAT 节点显示公网地址」随 monitor#9 上线,建议在包含它的版本发布后再合并。
测试
npm run build(预渲染 15 个路由)