From a7e61dff8bfe6f5fe0e13cf54dca7ce43ca92cf3 Mon Sep 17 00:00:00 2001 From: ly <641921791@qq.com> Date: Wed, 10 Jul 2019 20:33:39 +0800 Subject: [PATCH] Fix #1519 The subscriber list is not displayed correctly --- .../java/com/alibaba/nacos/client/naming/net/NamingProxy.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main/java/com/alibaba/nacos/client/naming/net/NamingProxy.java b/client/src/main/java/com/alibaba/nacos/client/naming/net/NamingProxy.java index d715a8f7b..83f5499bf 100644 --- a/client/src/main/java/com/alibaba/nacos/client/naming/net/NamingProxy.java +++ b/client/src/main/java/com/alibaba/nacos/client/naming/net/NamingProxy.java @@ -32,6 +32,7 @@ import com.alibaba.nacos.client.config.impl.SpasAdapter; import com.alibaba.nacos.client.monitor.MetricsMonitor; import com.alibaba.nacos.client.naming.beat.BeatInfo; import com.alibaba.nacos.client.naming.utils.*; +import com.alibaba.nacos.client.utils.AppNameUtils; import com.alibaba.nacos.client.utils.StringUtils; import com.alibaba.nacos.client.utils.TemplateUtils; import com.alibaba.nacos.common.util.HttpMethod; @@ -293,6 +294,7 @@ public class NamingProxy { params.put("udpPort", String.valueOf(udpPort)); params.put("clientIP", NetUtils.localIP()); params.put("healthyOnly", String.valueOf(healthyOnly)); + params.put("app", AppNameUtils.getAppName()); return reqAPI(UtilAndComs.NACOS_URL_BASE + "/instance/list", params, HttpMethod.GET); }