|
|
@@ -323,18 +323,16 @@ class KcpStreamSettings extends XrayCommonClass {
|
|
|
tti = 20,
|
|
|
uplinkCapacity = 5,
|
|
|
downlinkCapacity = 20,
|
|
|
- congestion = false,
|
|
|
- readBufferSize = 1,
|
|
|
- writeBufferSize = 1,
|
|
|
+ cwndMultiplier = 0,
|
|
|
+ maxSendingWindow = 0,
|
|
|
) {
|
|
|
super();
|
|
|
this.mtu = mtu;
|
|
|
this.tti = tti;
|
|
|
this.upCap = uplinkCapacity;
|
|
|
this.downCap = downlinkCapacity;
|
|
|
- this.congestion = congestion;
|
|
|
- this.readBuffer = readBufferSize;
|
|
|
- this.writeBuffer = writeBufferSize;
|
|
|
+ this.cwndMultiplier = cwndMultiplier;
|
|
|
+ this.maxSendingWindow = maxSendingWindow;
|
|
|
}
|
|
|
|
|
|
static fromJson(json = {}) {
|
|
|
@@ -343,9 +341,8 @@ class KcpStreamSettings extends XrayCommonClass {
|
|
|
json.tti,
|
|
|
json.uplinkCapacity,
|
|
|
json.downlinkCapacity,
|
|
|
- json.congestion,
|
|
|
- json.readBufferSize,
|
|
|
- json.writeBufferSize,
|
|
|
+ json.cwndMultiplier,
|
|
|
+ json.maxSendingWindow,
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -355,9 +352,8 @@ class KcpStreamSettings extends XrayCommonClass {
|
|
|
tti: this.tti,
|
|
|
uplinkCapacity: this.upCap,
|
|
|
downlinkCapacity: this.downCap,
|
|
|
- congestion: this.congestion,
|
|
|
- readBufferSize: this.readBuffer,
|
|
|
- writeBufferSize: this.writeBuffer,
|
|
|
+ cwndMultiplier: this.cwndMultiplier,
|
|
|
+ maxSendingWindow: this.maxSendingWindow,
|
|
|
};
|
|
|
}
|
|
|
}
|