summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2022-02-16 15:04:31 +0800
committerliuxueli <[email protected]>2022-02-21 17:28:27 +0800
commit36121a2e70fd09bc52814ca9eaccd9c1f482997a (patch)
treefe9d0aad6a6433e34d5ae2fb0b89db3b7513b813
parent45cd96f20f781208ca1169c39433ddaa974256f3 (diff)
TSG-9326: 增加识别FTP DATA的链接,修复ftp协议下载文件没有命中安全限速策略的问题v5.5.6
-rw-r--r--src/tsg_entry.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 6400ca1..76ce0b9 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -1396,6 +1396,13 @@ static int identify_application_protocol(const struct streaminfo *a_stream, stru
context->proto=PROTO_FTP;
return 1;
}
+
+ ret=ftp_data_identify((struct streaminfo *)a_stream);
+ if(ret>0)
+ {
+ context->proto=PROTO_FTP;
+ return 1;
+ }
}
if(g_tsg_para.proto_flag&(1<<PROTO_MAIL)) //mail