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