mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
代理服务配置优化
This commit is contained in:
@@ -44,24 +44,24 @@ public class AppMain {
|
||||
if (jsonObject.containsKey(ConfigConstant.CACHE)) {
|
||||
CacheConfigLoader.init(jsonObject.getJsonObject(ConfigConstant.CACHE));
|
||||
}
|
||||
|
||||
LocalMap<Object, Object> localMap = VertxHolder.getVertxInstance().sharedData().getLocalMap(LOCAL);
|
||||
// 代理
|
||||
if (jsonObject.containsKey(ConfigConstant.PROXY)) {
|
||||
LocalMap<Object, Object> localMap = VertxHolder.getVertxInstance().sharedData().getLocalMap(LOCAL);
|
||||
JsonArray proxyJsonArray = jsonObject.getJsonArray(ConfigConstant.PROXY);
|
||||
if (proxyJsonArray != null) {
|
||||
JsonObject jsonObject1 = new JsonObject();
|
||||
proxyJsonArray.forEach(proxyJson -> {
|
||||
String panTypes = ((JsonObject)proxyJson).getString("panTypes");
|
||||
|
||||
if (!panTypes.isEmpty()) {
|
||||
JsonObject jsonObject1 = new JsonObject();
|
||||
for (String s : panTypes.split(",")) {
|
||||
jsonObject1.put(s, proxyJson);
|
||||
}
|
||||
localMap.put("proxy", jsonObject1);
|
||||
}
|
||||
});
|
||||
localMap.put("proxy", jsonObject1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user