From 7c22c8d28a46fdc50a9c0d192bf226bb55ab8a57 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Thu, 7 May 2020 17:13:37 +0800 Subject: [PATCH] =?UTF-8?q?HTTP=E7=9A=84FQDN=20deny=E5=8A=A8=E4=BD=9C?= =?UTF-8?q?=E7=94=B1fw=5Fhttp=5Fplug=E4=B8=9A=E5=8A=A1=E5=B1=82=E5=81=9A(?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0=EF=BC=9A=E4=B8=8D=E5=BB=BA=E8=AE=AE=E6=80=BB?= =?UTF-8?q?=E6=8E=A7=E6=94=AF=E6=8C=81block/alert=E5=8A=A8=E4=BD=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 32ae0f7..6f13fef 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -41,7 +41,7 @@ static __attribute__((__used__)) const char * GIT_VERSION_UNKNOWN = NULL; #endif -char TSG_MASTER_VERSION_20200430=0; +char TSG_MASTER_VERSION_20200507=0; const char *tsg_conffile="tsgconf/main.conf"; g_tsg_para_t g_tsg_para; @@ -606,6 +606,7 @@ extern "C" char TSG_MASTER_TCP_ENTRY(struct streaminfo *a_tcp, void **pme, int t switch((unsigned char)p_result->action) { case TSG_ACTION_DENY: + #if 0 /* support block/alert(deny), Do action in fw_http_plug */ master_do_deny(a_tcp, p_result, thread_seq); master_send_log(a_tcp, p_result, 1, &identify_info, thread_seq); FS_operate(g_tsg_para.fs2_handle, g_tsg_para.fs2_field_id[TSG_FS2_DENY], 0, FS_OP_ADD, 1); @@ -621,6 +622,7 @@ extern "C" char TSG_MASTER_TCP_ENTRY(struct streaminfo *a_tcp, void **pme, int t ); return APP_STATE_DROPPKT|APP_STATE_KILL_OTHER; + #endif break; case TSG_ACTION_MONITOR: if(q_result!=NULL && (p_result==q_result))