summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2021-07-12 17:29:42 +0800
committerliuxueli <[email protected]>2021-07-12 17:29:42 +0800
commit06b600e3f545c3dfa13b714b7d2fe68152822295 (patch)
treea351228f4da271582b6023091d2fa540e141dd9a /src
parent604fd5d17971dad9fa03547af43b13ab911f6f00 (diff)
命中DENY策略后:并联环境仅对请求包发欺骗包及日志,串联环境丢弃真实应答包并发送伪造应答欺骗包及日志v3.0.8
Diffstat (limited to 'src')
-rw-r--r--src/fw_dns_plug.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fw_dns_plug.cpp b/src/fw_dns_plug.cpp
index 96ea32a..00b793d 100644
--- a/src/fw_dns_plug.cpp
+++ b/src/fw_dns_plug.cpp
@@ -523,7 +523,10 @@ extern "C" char FW_DNS_PLUG_ENTRY(stSessionInfo* session_info, void **pme, int
if(p_result!=NULL)
{
state=fw_dns_action(a_stream, dns_info, p_result, a_packet);
- fw_dns_send_log(a_stream, dns_info, p_result, 1, thread_seq);
+ if(state!=PROT_STATE_GIVEME)
+ {
+ fw_dns_send_log(a_stream, dns_info, p_result, 1, thread_seq);
+ }
}
else
{