This is an automated email from the ASF dual-hosted git repository.
guoqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new c1cf6c874 fix: the docs website build failed due to incorrect unclosed
tag <br> (#11973)
c1cf6c874 is described below
commit c1cf6c87413836b4263617e6f82aacaf60576094
Author: Qi Guo <[email protected]>
AuthorDate: Mon Feb 17 17:02:47 2025 +0800
fix: the docs website build failed due to incorrect unclosed tag <br>
(#11973)
---
docs/en/latest/plugins/real-ip.md | 2 +-
docs/zh/latest/plugins/real-ip.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/en/latest/plugins/real-ip.md
b/docs/en/latest/plugins/real-ip.md
index c2ccec63b..c607046cc 100644
--- a/docs/en/latest/plugins/real-ip.md
+++ b/docs/en/latest/plugins/real-ip.md
@@ -43,7 +43,7 @@ The Plugin is functionally similar to NGINX's
[ngx_http_realip_module](https://n
|-----------|---------|----------|---------|----------------|---------------|
| source | string | True | | |A built-in [APISIX
variable](https://apisix.apache.org/docs/apisix/apisix-variable/) or [NGINX
variable](https://nginx.org/en/docs/varindex.html), such as
`http_x_forwarded_for` or `arg_realip`. The variable value should be a valid IP
address that represents the client's real IP address, with an optional port.|
| trusted_addresses | array[string] | False | | array of IPv4 or IPv6
addresses (CIDR notation acceptable) | Trusted addresses that are known to
send correct replacement addresses. This configuration sets the
[`set_real_ip_from`](https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from)
directive. |
-| recursive | boolean | False | False | | If false, replace the
original client address that matches one of the trusted addresses by the last
address sent in the configured `source`.<br>If true, replace the original
client address that matches one of the trusted addresses by the last
non-trusted address sent in the configured `source`. |
+| recursive | boolean | False | False | | If false, replace the
original client address that matches one of the trusted addresses by the last
address sent in the configured `source`.<br />If true, replace the original
client address that matches one of the trusted addresses by the last
non-trusted address sent in the configured `source`. |
:::note
If the address specified in `source` is missing or invalid, the Plugin would
not change the client address.
diff --git a/docs/zh/latest/plugins/real-ip.md
b/docs/zh/latest/plugins/real-ip.md
index d3ea92ddf..2afc69d2c 100644
--- a/docs/zh/latest/plugins/real-ip.md
+++ b/docs/zh/latest/plugins/real-ip.md
@@ -43,7 +43,7 @@ description: real-ip 插件允许 Apache APISIX 通过 HTTP 请求头或 HTTP
|-------------------|---------------|----------|--------|----------------------------|----------------------------------------------------------------------|
| source | string | 是 | |
| 内置变量,例如 `http_x_forwarded_for` 或 `arg_realip`。变量值应为一个有效的 IP 地址,表示客户端的真实
IP 地址,可选地包含端口。 |
| trusted_addresses | array[string] | 否 | | IPv4 或 IPv6 地址数组(接受
CIDR 表示法) | 已知会发送正确替代地址的可信地址。此配置设置
[`set_real_ip_from`](https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from)
指令。 |
-| recursive | boolean | 否 | false |
| 如果为 false,则将匹配可信地址之一的原始客户端地址替换为配置的 `source` 中发送的最后一个地址。<br>如果为
true,则将匹配可信地址之一的原始客户端地址替换为配置的 `source` 中发送的最后一个非可信地址。 |
+| recursive | boolean | 否 | false |
| 如果为 false,则将匹配可信地址之一的原始客户端地址替换为配置的 `source` 中发送的最后一个地址。<br />如果为
true,则将匹配可信地址之一的原始客户端地址替换为配置的 `source` 中发送的最后一个非可信地址。 |
:::note
如果 `source` 属性中设置的地址丢失或者无效,该插件将不会更改客户端地址。