diff --git a/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/controller/TrackerHelper.java b/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/controller/TrackerHelper.java index 68c6871a4..d6f397829 100644 --- a/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/controller/TrackerHelper.java +++ b/dongtai-core/src/main/java/io/dongtai/iast/core/handler/hookpoint/controller/TrackerHelper.java @@ -145,8 +145,9 @@ private boolean isEnterEntry() { private boolean isFirstLevel(int targetLevel) { if (this.enterHttp > 0 || this.grpcLevel > 0 || this.kafkaLevel > 0) { - return this.sourceLevel == 0 && this.leaveSource == 1 - && targetLevel == 1; +// return this.sourceLevel == 0 && this.leaveSource == 1 +// && targetLevel == 1; + return this.sourceLevel == 0 && targetLevel == 1; } if (this.dubboLevel > 0) { return targetLevel == 1; diff --git a/dongtai-core/src/main/java/io/dongtai/iast/core/utils/config/RemoteConfigUtils.java b/dongtai-core/src/main/java/io/dongtai/iast/core/utils/config/RemoteConfigUtils.java index cadd28009..f0cb6e1d5 100644 --- a/dongtai-core/src/main/java/io/dongtai/iast/core/utils/config/RemoteConfigUtils.java +++ b/dongtai-core/src/main/java/io/dongtai/iast/core/utils/config/RemoteConfigUtils.java @@ -266,7 +266,7 @@ public static void syncRemoteConfigV2(int agentId) { existsRemoteConfigMeta = remoteResponse; DongTaiLog.debug("Sync remote config successful."); } - if (enableAutoFallback == true){ + if (enableAutoFallback){ reqCount = EngineManager.getRequestCount() - lastReqCount; lastReqCount = EngineManager.getRequestCount(); if (reqCount>0 && fallbackReqCount*1.0/reqCount > getResponseTimeThresholdRate()){ @@ -304,9 +304,6 @@ private static String getConfigFromRemote(int agentId) { * 根据agentID获取服务端对Agent的配置 */ private static String getConfigFromRemoteV2(int agentId) { - if (EngineManager.isEngineRunning()){ - return "{}"; - } JSONObject report = new JSONObject(); report.put(KEY_AGENT_ID, agentId); try {