kcp : default value maxSendingWindow

MaxSendingWindow must be >= Mtu
This commit is contained in:
MHSanaei 2026-04-21 15:00:12 +02:00
parent 085cb8c216
commit 1af795fad8
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
2 changed files with 2 additions and 2 deletions

View file

@ -324,7 +324,7 @@ class KcpStreamSettings extends XrayCommonClass {
uplinkCapacity = 5,
downlinkCapacity = 20,
cwndMultiplier = 1,
maxSendingWindow = 0,
maxSendingWindow = 1350,
) {
super();
this.mtu = mtu;

View file

@ -170,7 +170,7 @@ class KcpStreamSettings extends CommonClass {
uplinkCapacity = 5,
downlinkCapacity = 20,
cwndMultiplier = 1,
maxSendingWindow = 0,
maxSendingWindow = 1350,
) {
super();
this.mtu = mtu;