You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2020/12/16 07:41:31 UTC

[dubbo-website] branch master updated: Update routing-rule.md (#674)

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

iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 638fc76  Update routing-rule.md (#674)
638fc76 is described below

commit 638fc76479b983b93f5bdb9842ab43aa73de96b2
Author: luke <lo...@hotmail.com>
AuthorDate: Wed Dec 16 15:41:20 2020 +0800

    Update routing-rule.md (#674)
    
    白名单 与 黑名单 代码示例 host 参数修改 register.ip ,因为符号 "=>" 左边的 host 参数在 2.7 版本中代表注册中心的ip。
---
 content/zh/docs/v2.7/user/examples/routing-rule.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/zh/docs/v2.7/user/examples/routing-rule.md b/content/zh/docs/v2.7/user/examples/routing-rule.md
index a3ac695..9313109 100644
--- a/content/zh/docs/v2.7/user/examples/routing-rule.md
+++ b/content/zh/docs/v2.7/user/examples/routing-rule.md
@@ -112,7 +112,7 @@ description: "通过 Dubbo 中的路由规则做服务治理"
 - 白名单:
 
 ```
-host != 10.20.153.10,10.20.153.11 =>
+register.ip != 10.20.153.10,10.20.153.11 =>
 ```
 
 {{% alert title="注意" color="warning" %}}
@@ -122,7 +122,7 @@ host != 10.20.153.10,10.20.153.11 =>
 - 黑名单:
 
 ```
-host = 10.20.153.10,10.20.153.11 =>
+register.ip = 10.20.153.10,10.20.153.11 =>
 ```
 
 - 服务寄宿在应用上,只暴露一部分的机器,防止整个集群挂掉: