This is an automated email from the ASF dual-hosted git repository.

spacewander 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 85ed4cc  doc: correct the doc of plugin ip-restriction (#2420)
85ed4cc is described below

commit 85ed4cc576f202f5730b0e96a0e759eb7c6a38fc
Author: 罗泽轩 <[email protected]>
AuthorDate: Wed Oct 14 21:37:55 2020 +0800

    doc: correct the doc of plugin ip-restriction (#2420)
---
 doc/plugins/ip-restriction.md       | 14 +++++++-------
 doc/zh-cn/plugins/ip-restriction.md |  8 ++++----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/doc/plugins/ip-restriction.md b/doc/plugins/ip-restriction.md
index 54fb1fd..07bc9f0 100644
--- a/doc/plugins/ip-restriction.md
+++ b/doc/plugins/ip-restriction.md
@@ -70,18 +70,18 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335f13
 
 ## Test Plugin
 
-Requests to `127.0.0.1`:
+Requests from `127.0.0.1`:
 
 ```shell
-$ curl http://127.0.0.1:9080/index.html
+$ curl http://127.0.0.1:9080/index.html -i
 HTTP/1.1 200 OK
 ...
 ```
 
-Requests to `127.0.0.2`:
+Requests from `127.0.0.2`:
 
 ```shell
-$ curl http://127.0.0.2:9080/index.html -i
+$ curl http://127.0.0.1:9080/index.html -i --interface 127.0.0.2
 HTTP/1.1 403 Forbidden
 ...
 {"message":"Your IP address is not allowed"}
@@ -116,15 +116,15 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335f13
 
 ## Test Plugin after restriction change
 
-Requests to `127.0.0.2`:
+Requests from `127.0.0.2`:
 
 ```shell
-$ curl http://127.0.0.2:9080/index.html
+$ curl http://127.0.0.2:9080/index.html -i --interface 127.0.0.2
 HTTP/1.1 200 OK
 ...
 ```
 
-Requests to `127.0.0.1`:
+Requests from `127.0.0.1`:
 
 ```shell
 $ curl http://127.0.0.1:9080/index.html -i
diff --git a/doc/zh-cn/plugins/ip-restriction.md 
b/doc/zh-cn/plugins/ip-restriction.md
index 7554dbe..7e4a126 100644
--- a/doc/zh-cn/plugins/ip-restriction.md
+++ b/doc/zh-cn/plugins/ip-restriction.md
@@ -66,18 +66,18 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 
'X-API-KEY: edd1c9f034335f13
 
 ## 测试插件
 
-访问 `127.0.0.1`:
+通过 `127.0.0.1` 访问:
 
 ```shell
-$ curl http://127.0.0.1:9080/index.html
+$ curl http://127.0.0.1:9080/index.html -i
 HTTP/1.1 200 OK
 ...
 ```
 
-访问 `127.0.0.2`:
+通过 `127.0.0.2` 访问:
 
 ```shell
-$ curl http://127.0.0.2:9080/index.html -i
+$ curl http://127.0.0.1:9080/index.html -i --interface 127.0.0.2
 HTTP/1.1 403 Forbidden
 ...
 {"message":"Your IP address is not allowed"}

Reply via email to