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

wenming 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 e01abd9  docs: update some explanations for the usage of the mqtt 
proxy (zh) (#6051)
e01abd9 is described below

commit e01abd9905b3b267078960dacd7653e4ffca3265
Author: guoqqqi <[email protected]>
AuthorDate: Sun Jan 9 16:27:13 2022 +0800

    docs: update some explanations for the usage of the mqtt proxy (zh) (#6051)
---
 docs/zh/latest/plugins/mqtt-proxy.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/zh/latest/plugins/mqtt-proxy.md 
b/docs/zh/latest/plugins/mqtt-proxy.md
index a320c92..7514b20 100644
--- a/docs/zh/latest/plugins/mqtt-proxy.md
+++ b/docs/zh/latest/plugins/mqtt-proxy.md
@@ -64,12 +64,11 @@ title: mqtt-proxy
 
 然后把 MQTT 请求发送到 9100 端口即可。
 
-下面是一个示例,在指定的 route 上开启了 mqtt-proxy 插件:
+下面是一个示例,在指定的 route 上开启了 `mqtt-proxy` 插件:
 
 ```shell
 curl http://127.0.0.1:9080/apisix/admin/stream_routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
 {
-    "remote_addr": "127.0.0.1",
     "plugins": {
         "mqtt-proxy": {
             "protocol_name": "MQTT",
@@ -87,6 +86,8 @@ curl http://127.0.0.1:9080/apisix/admin/stream_routes/1 -H 
'X-API-KEY: edd1c9f03
 }'
 ```
 
+在 Docker 与 MacOS 结合使用的情况下,`host.docker.internal` 是 `host` 的正确参数。
+
 #### 禁用插件
 
 当你想去掉插件的时候,很简单,在插件的配置中把对应的 json 配置删除即可,无须重启服务,即刻生效:

Reply via email to