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 2019/08/22 07:09:53 UTC
[dubbo] branch master updated: fix 4892 (#4893)
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.git
The following commit(s) were added to refs/heads/master by this push:
new 21397b3 fix 4892 (#4893)
21397b3 is described below
commit 21397b30599ce765d3db938ca53ba26c108ab363
Author: kexianjun <ke...@hotmail.com>
AuthorDate: Thu Aug 22 15:09:42 2019 +0800
fix 4892 (#4893)
---
.../src/main/java/org/apache/dubbo/config/MonitorConfig.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/MonitorConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/MonitorConfig.java
index 5058aa0..f1c9c21 100644
--- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/MonitorConfig.java
+++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/MonitorConfig.java
@@ -16,6 +16,7 @@
*/
package org.apache.dubbo.config;
+import org.apache.dubbo.common.constants.RegistryConstants;
import org.apache.dubbo.common.utils.StringUtils;
import org.apache.dubbo.config.support.Parameter;
@@ -154,7 +155,7 @@ public class MonitorConfig extends AbstractConfig {
@Override
@Parameter(excluded = true)
public boolean isValid() {
- return StringUtils.isNotEmpty(address);
+ return StringUtils.isNotEmpty(address) || RegistryConstants.REGISTRY_PROTOCOL.equals(protocol);
}
}