[AGENT][INIT] 优化启动流程代码

This commit is contained in:
zeaslity
2023-03-02 11:50:42 +08:00
parent cd5c1c3788
commit c3b2ce84a3
4 changed files with 35 additions and 3 deletions

View File

@@ -68,6 +68,14 @@ public class XrayDBOperator {
String serverCity = serverInfoVO
.getLocation()
.split(" ")[0];
// fix bug for Seoul的情况 tmd
if (!ALL_SERVER_CITY_INDEX.containsKey(serverCity)) {
serverCity = serverInfoVO
.getLocation()
.split(" ")[1];
}
int cityBitMapBase = ALL_SERVER_CITY_INDEX.get(serverCity) * 10;
int serverGraphNum = cityBitMapBase;
for (int index = cityBitMapBase; index < cityBitMapBase + 10; index++) {