We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a5bee commit a2bead4Copy full SHA for a2bead4
src/main/java/com/shinemo/mpush/alloc/AllocHandler.java
@@ -114,7 +114,7 @@ private long getOnlineUserNum(String publicIP) {
114
private ServerNode convert(ServiceNode node) {
115
String public_ip = node.getAttr(ServiceNames.ATTR_PUBLIC_IP);
116
long onlineUserNum = getOnlineUserNum(public_ip);
117
- return new ServerNode(node.getHost(), node.getPort(), onlineUserNum);
+ return new ServerNode(public_ip, node.getPort(), onlineUserNum);
118
}
119
120
private class ConnServerNodeListener implements ServiceListener {
0 commit comments