From c4584669765481f94197ffab3b9f6fb31218b995 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Fri, 14 Jul 2023 19:16:05 +0800 Subject: OMPUB-961: 未开启代理功能时不再开启解析SYN/SYN_ACK的逻辑 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 2 +- src/tsg_proxy.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 823b4c0..c481dd7 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -2471,7 +2471,7 @@ extern "C" unsigned char TSG_MASTER_TCPALL_ENTRY(const struct streaminfo *a_tcp, srt_action_context->set_latency_flag=session_tcp_establish_latency_ms_set(a_tcp, thread_seq, a_packet); } - if (a_packet != NULL) + if (a_packet!=NULL) { tsg_proxy_tcp_options_parse(a_tcp, a_packet); } diff --git a/src/tsg_proxy.cpp b/src/tsg_proxy.cpp index 93ef39b..1ec7276 100644 --- a/src/tsg_proxy.cpp +++ b/src/tsg_proxy.cpp @@ -328,7 +328,7 @@ void tsg_proxy_first_data_process(const struct streaminfo *stream, struct tsg_pr void tsg_proxy_tcp_options_parse(const struct streaminfo *stream, const void *a_packet) { - if(a_packet==NULL) + if(a_packet==NULL || g_tsg_para.intercept_sid<=0) { return ; } -- cgit v1.2.3