修复jmx ip选择错误

This commit is contained in:
wangyaobo
2022-09-05 15:40:01 +08:00
parent 9a1a8a4c30
commit 7909f60ff8

View File

@@ -111,7 +111,7 @@ public class Broker implements Serializable {
return host; return host;
} }
IpPortData ip = endpointMap.get(endPoint); IpPortData ip = endpointMap.get(endPoint);
return ip == null ? ip.getIp() : host; return ip != null ? ip.getIp() : host;
} }
public boolean alive() { public boolean alive() {