mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 10:57:50 +08:00
转发rtp时,关闭srtp防重放攻击逻辑
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
This commit is contained in:
parent
f35771a83e
commit
c9d3c5b516
@ -204,7 +204,11 @@ 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;
|
||||||
policy.window_size = 1024;
|
if (type == Type::OUTBOUND) {
|
||||||
|
policy.window_size = 0x8000 - 1;
|
||||||
|
} else {
|
||||||
|
policy.window_size = 1024;
|
||||||
|
}
|
||||||
policy.next = nullptr;
|
policy.next = nullptr;
|
||||||
|
|
||||||
// Set the SRTP session.
|
// Set the SRTP session.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user