diff options
| author | liuxueli <[email protected]> | 2019-12-06 15:54:50 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2019-12-06 15:54:50 +0800 |
| commit | b3294f80bb2da46eeabe5c41f4387659f935606f (patch) | |
| tree | 1aecd750d553c4c5f7a7ba4aa98524ace68c49e9 | |
| parent | 70b19290cea62034ca89b6bab2faafab8b2885af (diff) | |
DNS Deny动作发送日志不支持多命中
| -rw-r--r-- | src/fw_dns_plug.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fw_dns_plug.cpp b/src/fw_dns_plug.cpp index 34cb993..3196235 100644 --- a/src/fw_dns_plug.cpp +++ b/src/fw_dns_plug.cpp @@ -447,10 +447,12 @@ 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); - hit_num=1; + fw_dns_send_log(a_stream, dns_info, p_result, 1, thread_seq); + } + else + { + fw_dns_send_log(a_stream, dns_info, result, hit_num, thread_seq); } - - fw_dns_send_log(a_stream, dns_info, result, hit_num, thread_seq); } |
