commit
f2c061040c
@ -74,7 +74,7 @@ public class ServerListManager {
|
||||
GlobalExecutor.registerServerStatusReporter(new ServerStatusReporter(), 5000);
|
||||
}
|
||||
|
||||
public List<Server> refreshServerList() {
|
||||
private List<Server> refreshServerList() {
|
||||
|
||||
List<Server> result = new ArrayList<>();
|
||||
|
||||
@ -111,12 +111,12 @@ public class ServerListManager {
|
||||
|
||||
String ip;
|
||||
int port;
|
||||
if (serverList.get(0).contains(UtilsAndCommons.IP_PORT_SPLITER)) {
|
||||
|
||||
ip = serverList.get(i).split(UtilsAndCommons.IP_PORT_SPLITER)[0];
|
||||
port = Integer.parseInt(serverList.get(i).split(UtilsAndCommons.IP_PORT_SPLITER)[1]);
|
||||
String server = serverList.get(i);
|
||||
if (server.contains(UtilsAndCommons.IP_PORT_SPLITER)) {
|
||||
ip = server.split(UtilsAndCommons.IP_PORT_SPLITER)[0];
|
||||
port = Integer.parseInt(server.split(UtilsAndCommons.IP_PORT_SPLITER)[1]);
|
||||
} else {
|
||||
ip = serverList.get(i);
|
||||
ip = server;
|
||||
port = RunningConfig.getServerPort();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user