Commit 6a95579f authored by fallenstardust's avatar fallenstardust

不含有ini的ypk不再做服务器信息判断

移除失效的先行对照表
parent 06dc74a6
...@@ -152,15 +152,14 @@ public class ServerUtil { ...@@ -152,15 +152,14 @@ public class ServerUtil {
} }
} }
} }
if (serverName != null && (isHost(serverHost) || isValidIP(serverHost)) && isNumeric(serverPort)) {
AddServer(context, serverName, serverHost, Integer.valueOf(serverPort), "Knight of Hanoi");
} else {
Log.w(TAG,"can't parse ex-server properly");
}
} }
} }
} }
if (serverName != null && (isHost(serverHost) || isValidIP(serverHost)) && isNumeric(serverPort)) {
AddServer(context, serverName, serverHost, Integer.valueOf(serverPort), "Knight of Hanoi");
} else {
Log.w(TAG,"can't parse ex-server properly");
}
zipFile.close(); zipFile.close();
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment