From c0f44e08794a66e9d0a216b3acbc14d77bedd9b0 Mon Sep 17 00:00:00 2001 From: nzomkxia Date: Thu, 24 May 2018 14:44:13 +0800 Subject: [PATCH] Merge pull request #1839, remove validation key from provider url registered to registry. Fixes #1386. --- .../alibaba/dubbo/registry/integration/RegistryProtocol.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/integration/RegistryProtocol.java b/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/integration/RegistryProtocol.java index 3f5b731745fd..fd414edd1357 100644 --- a/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/integration/RegistryProtocol.java +++ b/dubbo-registry/dubbo-registry-api/src/main/java/com/alibaba/dubbo/registry/integration/RegistryProtocol.java @@ -50,6 +50,7 @@ import static com.alibaba.dubbo.common.Constants.ACCEPT_FOREIGN_IP; import static com.alibaba.dubbo.common.Constants.QOS_ENABLE; import static com.alibaba.dubbo.common.Constants.QOS_PORT; +import static com.alibaba.dubbo.common.Constants.VALIDATION_KEY; /** * RegistryProtocol @@ -227,7 +228,8 @@ private URL getRegistedProviderUrl(final Invoker originInvoker) { .removeParameter(Constants.BIND_PORT_KEY) .removeParameter(QOS_ENABLE) .removeParameter(QOS_PORT) - .removeParameter(ACCEPT_FOREIGN_IP); + .removeParameter(ACCEPT_FOREIGN_IP) + .removeParameter(VALIDATION_KEY); return registedProviderUrl; }