Fix #1519 The subscriber list is not displayed correctly
This commit is contained in:
parent
1915e9c087
commit
a7e61dff8b
@ -32,6 +32,7 @@ import com.alibaba.nacos.client.config.impl.SpasAdapter;
|
|||||||
import com.alibaba.nacos.client.monitor.MetricsMonitor;
|
import com.alibaba.nacos.client.monitor.MetricsMonitor;
|
||||||
import com.alibaba.nacos.client.naming.beat.BeatInfo;
|
import com.alibaba.nacos.client.naming.beat.BeatInfo;
|
||||||
import com.alibaba.nacos.client.naming.utils.*;
|
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.StringUtils;
|
||||||
import com.alibaba.nacos.client.utils.TemplateUtils;
|
import com.alibaba.nacos.client.utils.TemplateUtils;
|
||||||
import com.alibaba.nacos.common.util.HttpMethod;
|
import com.alibaba.nacos.common.util.HttpMethod;
|
||||||
@ -293,6 +294,7 @@ public class NamingProxy {
|
|||||||
params.put("udpPort", String.valueOf(udpPort));
|
params.put("udpPort", String.valueOf(udpPort));
|
||||||
params.put("clientIP", NetUtils.localIP());
|
params.put("clientIP", NetUtils.localIP());
|
||||||
params.put("healthyOnly", String.valueOf(healthyOnly));
|
params.put("healthyOnly", String.valueOf(healthyOnly));
|
||||||
|
params.put("app", AppNameUtils.getAppName());
|
||||||
|
|
||||||
return reqAPI(UtilAndComs.NACOS_URL_BASE + "/instance/list", params, HttpMethod.GET);
|
return reqAPI(UtilAndComs.NACOS_URL_BASE + "/instance/list", params, HttpMethod.GET);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user