Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-26 22:32:50 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-26 22:32:50 +0300
commit8529f4f0cfbe40e211959571807af7128408b960 (patch)
tree5656cda2171753aeb5e401d8f61a8261f53a376a /web/assets
parentabc5cf3439ffec38accaa4242eb7d4a692cb5bb4 (diff)
kcp: mtu and tti
Add KCP-specific fields mtu and tti to inbound stream handling in web/assets/js/model/inbound.js. The changes add obj.mtu/obj.tti when serializing the kcp stream and set params for mtu and tti in the various KCP parameter-building branches so these values are preserved and transmitted where KCP is used.
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/inbound.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js
index c653eb7a..a091e1ef 100644
--- a/web/assets/js/model/inbound.js
+++ b/web/assets/js/model/inbound.js
@@ -1566,6 +1566,8 @@ class Inbound extends XrayCommonClass {
}
} else if (network === 'kcp') {
const kcp = this.stream.kcp;
+ obj.mtu = kcp.mtu;
+ obj.tti = kcp.tti;
} else if (network === 'ws') {
const ws = this.stream.ws;
obj.path = ws.path;
@@ -1626,6 +1628,8 @@ class Inbound extends XrayCommonClass {
break;
case "kcp":
const kcp = this.stream.kcp;
+ params.set("mtu", kcp.mtu);
+ params.set("tti", kcp.tti);
break;
case "ws":
const ws = this.stream.ws;
@@ -1727,6 +1731,8 @@ class Inbound extends XrayCommonClass {
break;
case "kcp":
const kcp = this.stream.kcp;
+ params.set("mtu", kcp.mtu);
+ params.set("tti", kcp.tti);
break;
case "ws":
const ws = this.stream.ws;
@@ -1804,6 +1810,8 @@ class Inbound extends XrayCommonClass {
break;
case "kcp":
const kcp = this.stream.kcp;
+ params.set("mtu", kcp.mtu);
+ params.set("tti", kcp.tti);
break;
case "ws":
const ws = this.stream.ws;