diff --git a/naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java b/naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java index 3d9a11506..95a87021b 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java @@ -469,6 +469,12 @@ public class InstanceController { } for (Instance instance : ips) { + + // remove disabled instance: + if (!instance.isEnabled()) { + continue; + } + JSONObject ipObj = new JSONObject(); ipObj.put("ip", instance.getIp());