mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-09 17:34:13 +00:00
prune CMHttpServer
This commit is contained in:
parent
7c91416350
commit
6d90352b6f
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user