From ae3d551c8a22f178704133f3dcd479acf5ff8ea0 Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 9 Jan 2026 11:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3webrtc=E4=B8=A2=E5=8C=85?= =?UTF-8?q?=E9=87=8D=E4=BC=A0=E8=AF=AF=E5=88=A4=E4=B8=BA=E9=87=8D=E6=94=BE?= =?UTF-8?q?=E6=94=BB=E5=87=BB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/SrtpSession.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webrtc/SrtpSession.cpp b/webrtc/SrtpSession.cpp index 1f0778e2..408769fc 100644 --- a/webrtc/SrtpSession.cpp +++ b/webrtc/SrtpSession.cpp @@ -204,11 +204,16 @@ SrtpSession::SrtpSession(Type type, CryptoSuite cryptoSuite, uint8_t *key, size_ policy.key = key; // Required for sending RTP retransmission without RTX. policy.allow_repeat_tx = 1; +#if 0 if (type == Type::OUTBOUND) { policy.window_size = 0x8000 - 1; } else { policy.window_size = 1024; } +#else + // TODO 关闭防重放攻击 + policy.window_size = 0x8000 - 1; +#endif policy.next = nullptr; // Set the SRTP session.