docs: fix typo in real-ip.md#12236
Merged
Merged
Conversation
Baoyuantop
reviewed
May 21, 2025
| ## 描述 | ||
|
|
||
| `real-ip` 插件允许 APISIX 通过 HTTP 请求头或 HTTP 查询字符串中传递的 IP 地址设置客户端的真实 IP。当 APISIX 位于反向代理之后时,此功能尤其有用,因为否则代理可能会被视为请求发起客户端。 | ||
| `real-ip` 插件允许 APISIX 通过 HTTP 请求头或 HTTP 查询字符串中传递的 IP 地址设置客户端的真实 IP。当 APISIX 位于反向代理之后时,此功能尤其有用,因为在这种情况下,代理可能会被视为请求发起客户端。 |
Contributor
There was a problem hiding this comment.
Suggested change
| `real-ip` 插件允许 APISIX 通过 HTTP 请求头或 HTTP 查询字符串中传递的 IP 地址设置客户端的真实 IP。当 APISIX 位于反向代理之后时,此功能尤其有用,因为在这种情况下,代理可能会被视为请求发起客户端。 | |
| `real-ip` 插件允许 APISIX 通过 HTTP 请求头或 HTTP 查询字符串中传递的 IP 地址设置客户端的真实 IP。当 APISIX 位于反向代理之后时,此功能尤其有用,否则反向代理可能会被误认为是请求的真实客户端。 |
Contributor
Author
There was a problem hiding this comment.
Hi @Baoyuantop , thinks for your review. I feel that using "否则" (otherwise) in this sentence sounds a bit odd, almost like a grammatical error. I asked DeepSeek about it, and here’s its response:
为什么原句的“否则”不合适?
“否则” 通常用于 “如果 A 不成立,那么 B 会发生”,例如:
“你必须开启 real-ip 插件,否则 APISIX 可能无法获取真实客户端 IP。”
但原句想表达的是 “反向代理的存在会导致误判”,而不是 “如果不做某件事,就会发生误判”,所以 “否则” 显得逻辑不连贯。
Member
There was a problem hiding this comment.
Either of these is more clear than the original. I've approved the change.
kayx23
approved these changes
May 23, 2025
moonming
approved these changes
May 24, 2025
Baoyuantop
approved these changes
May 26, 2025
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.
Description
Which issue(s) this PR fixes:
Fixes #
Checklist