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>2024-05-22 19:35:46 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-05-22 21:06:49 +0300
commit275370e32cddff5905cdf09ab9a60aa6799486e3 (patch)
treea068648e6c496fbfc6e465857dc0a744da746617 /web/assets/js/model/xray.js
parente7c59adc5928d9d9ef96480297f7618e3d57837c (diff)
new - (Sockopt) tcpMptcp , tcpNoDelay
https://xtls.github.io/en/config/transport.html#sockoptobject
Diffstat (limited to 'web/assets/js/model/xray.js')
-rw-r--r--web/assets/js/model/xray.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index b8e85ff6..e43f7e10 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -881,12 +881,14 @@ RealityStreamSettings.Settings = class extends XrayCommonClass {
};
class SockoptStreamSettings extends XrayCommonClass {
- constructor(acceptProxyProtocol = false, tcpFastOpen = false, mark = 0, tproxy="off") {
+ constructor(acceptProxyProtocol = false, tcpFastOpen = false, mark = 0, tproxy="off", tcpMptcp = false, tcpNoDelay = false) {
super();
this.acceptProxyProtocol = acceptProxyProtocol;
this.tcpFastOpen = tcpFastOpen;
this.mark = mark;
this.tproxy = tproxy;
+ this.tcpMptcp = tcpMptcp;
+ this.tcpNoDelay = tcpNoDelay;
}
static fromJson(json = {}) {
@@ -896,6 +898,8 @@ class SockoptStreamSettings extends XrayCommonClass {
json.tcpFastOpen,
json.mark,
json.tproxy,
+ json.tcpMptcp,
+ json.tcpNoDelay,
);
}
@@ -905,6 +909,8 @@ class SockoptStreamSettings extends XrayCommonClass {
tcpFastOpen: this.tcpFastOpen,
mark: this.mark,
tproxy: this.tproxy,
+ tcpMptcp: this.tcpMptcp,
+ tcpNoDelay: this.tcpNoDelay,
};
}
}