Disable SCTP zero checksum for old go client (#3319)

Old go-sdks with old pion/sctp version can't
process unknown parameters.
This commit is contained in:
cnderrauber
2025-01-09 13:22:23 +08:00
committed by GitHub
parent 0d9bad489c
commit f846c7719b
3 changed files with 5 additions and 3 deletions
+4
View File
@@ -306,6 +306,10 @@ func newPeerConnection(params TransportParams, onBandwidthEstimator func(estimat
se.SetFireOnTrackBeforeFirstRTP(true)
}
if params.ClientInfo.SupportSctpZeroChecksum() {
se.EnableSCTPZeroChecksum(true)
}
//
// Disable SRTP replay protection (https://datatracker.ietf.org/doc/html/rfc3711#page-15).
// Needed due to lack of RTX stream support in Pion.