diff options
| author | liuxueli <[email protected]> | 2023-07-14 19:16:05 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-07-14 19:16:05 +0800 |
| commit | c4584669765481f94197ffab3b9f6fb31218b995 (patch) | |
| tree | ef527bd3f8b6c8d01d097e8e82009a8502e0b36a | |
| parent | d4406bbd220967103525497cfc1f6d36a86e3174 (diff) | |
OMPUB-961: 未开启代理功能时不再开启解析SYN/SYN_ACK的逻辑v6.0.37
| -rw-r--r-- | src/tsg_entry.cpp | 2 | ||||
| -rw-r--r-- | 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 ; } |
