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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user