juzhiyuan commented on code in PR #7402:
URL: https://github.com/apache/apisix/pull/7402#discussion_r916375333


##########
docs/zh/latest/plugins/ip-restriction.md:
##########
@@ -23,22 +29,27 @@ title: ip-restriction
 
 ## 描述
 
-`ip-restriction` 可以通过以下方式限制对服务或路线的访问,将 IP 地址列入白名单或黑名单。 单个 IP 地址,多个 IP 地址 或 
CIDR 范围,可以使用类似 10.10.10.0/24 的 CIDR 表示法。
+`ip-restriction` 插件可以通过将 IP 地址列入白名单或黑名单来限制对服务或路由的访问。
+
+支持对单个 IP 地址、多个 IP 地址和类似 `10.10.10.0/24` 的 CIDR(Classless InterDomain 
Routing,无类域间路由)范围的限制。

Review Comment:
   ```suggestion
   支持对单个 IP 地址、多个 IP 地址和类似 `10.10.10.0/24` 的 CIDR(无类别域间路由)范围的限制。
   ```



##########
docs/zh/latest/plugins/ip-restriction.md:
##########
@@ -77,29 +88,62 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335f13
 
 ## 测试插件
 
-通过 `127.0.0.1` 访问:
+启用插件后,使用 `curl` 命令先从 IP 地址 `127.0.0.1` 发出请求:

Review Comment:
   ```suggestion
   启用插件后,使用 `curl` 命令访问 APISIX 实例地址:
   ```



##########
docs/zh/latest/plugins/ip-restriction.md:
##########
@@ -61,7 +72,7 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335f13
 }'
 ```
 
-当未允许的 IP 访问时,默认返回 `{"message":"Your IP address is not allowed"}`。如果你想使用自定义的 
`message`,可以在插件部分进行配置:
+当访问未允许的 IP 时,默认返回 `{"message":"Your IP address is not allowed"}`。如果想使用自定义的 
`message`,可以在插件部分进行配置:

Review Comment:
   ```suggestion
   当使用白名单之外的 IP 访问时,默认返回 `{"message":"Your IP address is not 
allowed"}`。如果想使用自定义的 `message`,可以在插件配置中进行调整:
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to