mKCP config: Check TTI 10~100 -> Check TTI 10~5000 (#5755)

https://github.com/XTLS/Xray-core/pull/5755#issuecomment-3992400360

---------

Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
This commit is contained in:
patterniha
2026-03-07 17:41:56 +03:30
committed by GitHub
parent 5138ffcf22
commit 88a2589498
+1 -1
View File
@@ -72,7 +72,7 @@ func (c *KCPConfig) Build() (proto.Message, error) {
}
if c.Tti != nil {
tti := *c.Tti
if tti < 10 || tti > 100 {
if tti < 10 || tti > 5000 {
return nil, errors.New("invalid mKCP TTI: ", tti).AtError()
}
config.Tti = &kcp.TTI{Value: tti}