disable sctp zero checksum for unknown sdk (#3321)

This commit is contained in:
cnderrauber
2025-01-10 11:55:28 +08:00
committed by GitHub
parent f846c7719b
commit f08fc581e0

View File

@@ -102,7 +102,8 @@ func (c ClientInfo) SupportErrorResponse() bool {
}
func (c ClientInfo) SupportSctpZeroChecksum() bool {
return !(c.isGo() && c.compareVersion("2.4.0") < 0)
return !(c.ClientInfo.GetSdk() == livekit.ClientInfo_UNKNOWN ||
(c.isGo() && c.compareVersion("2.4.0") < 0))
}
// compareVersion compares a semver against the current client SDK version