mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-16 11:00:52 +08:00
解决webrtc丢包重传误判为重放攻击的问题
This commit is contained in:
@@ -204,11 +204,16 @@ SrtpSession::SrtpSession(Type type, CryptoSuite cryptoSuite, uint8_t *key, size_
|
|||||||
policy.key = key;
|
policy.key = key;
|
||||||
// Required for sending RTP retransmission without RTX.
|
// Required for sending RTP retransmission without RTX.
|
||||||
policy.allow_repeat_tx = 1;
|
policy.allow_repeat_tx = 1;
|
||||||
|
#if 0
|
||||||
if (type == Type::OUTBOUND) {
|
if (type == Type::OUTBOUND) {
|
||||||
policy.window_size = 0x8000 - 1;
|
policy.window_size = 0x8000 - 1;
|
||||||
} else {
|
} else {
|
||||||
policy.window_size = 1024;
|
policy.window_size = 1024;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// TODO 关闭防重放攻击
|
||||||
|
policy.window_size = 0x8000 - 1;
|
||||||
|
#endif
|
||||||
policy.next = nullptr;
|
policy.next = nullptr;
|
||||||
|
|
||||||
// Set the SRTP session.
|
// Set the SRTP session.
|
||||||
|
|||||||
Reference in New Issue
Block a user