update upstream name

This commit is contained in:
fanqq 2015-06-30 19:13:59 +08:00
parent 9b7b49bb44
commit da747b51a2

View file

@ -126,7 +126,7 @@ public class GroupStatusServiceImpl implements GroupStatusService {
private boolean getUpstreamStatus(Long groupId, String ip , boolean memberUp , boolean serverUp) throws Exception {
UpstreamStatus upstreamStatus = LocalClient.getInstance().getUpstreamStatus();
List<S> servers = upstreamStatus.getServers().getServer();
String upstreamNameEndWith = "_"+groupRepository.getById(groupId).getName();
String upstreamNameEndWith = "_"+groupRepository.getById(groupId).getId();
for (S server : servers) {
if (!server.getUpstream().endsWith(upstreamNameEndWith))
{