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
+1 -1
View File
@@ -102,7 +102,7 @@ func (c ClientInfo) SupportErrorResponse() bool {
}
func (c ClientInfo) SupportSctpZeroChecksum() bool {
return !(c.isGo() && c.compareVersion("2.1.3") <= 0)
return !(c.isGo() && c.compareVersion("2.4.0") < 0)
}
// compareVersion compares a semver against the current client SDK version