mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-12 09:00:53 +08:00
转发rtp时,关闭srtp防重放攻击逻辑
This commit is contained in:
@@ -204,7 +204,11 @@ 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;
|
||||
policy.window_size = 1024;
|
||||
if (type == Type::OUTBOUND) {
|
||||
policy.window_size = 0x8000 - 1;
|
||||
} else {
|
||||
policy.window_size = 1024;
|
||||
}
|
||||
policy.next = nullptr;
|
||||
|
||||
// Set the SRTP session.
|
||||
|
||||
Reference in New Issue
Block a user