prune CMHttpServer

This commit is contained in:
CaiHQ 2023-02-08 13:59:03 +08:00
parent 7c91416350
commit 6d90352b6f

View File

@ -161,6 +161,9 @@ public class CMHttpServer {
try {
for (JsonElement je : cmdConf.startContract) {
JsonObject jo = je.getAsJsonObject();
if (!jo.has("path"))
continue;
String path = jo.get("path").getAsString();
File f = new File(path);
if (!f.getName().endsWith(".ypk") || !f.exists())