diff options
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/model/outbound.js | 5 | ||||
| -rw-r--r-- | web/assets/js/model/xray.js | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 1cb1df21..e8f846b4 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -361,11 +361,12 @@ class RealityStreamSettings extends CommonClass { } }; class SockoptStreamSettings extends CommonClass { - constructor(dialerProxy = "", tcpFastOpen = false, tcpKeepAliveInterval = 0, tcpNoDelay = false) { + constructor(dialerProxy = "", tcpFastOpen = false, tcpKeepAliveInterval = 0, tcpMptcp = false, tcpNoDelay = false) { super(); this.dialerProxy = dialerProxy; this.tcpFastOpen = tcpFastOpen; this.tcpKeepAliveInterval = tcpKeepAliveInterval; + this.tcpMptcp = tcpMptcp; this.tcpNoDelay = tcpNoDelay; } @@ -375,6 +376,7 @@ class SockoptStreamSettings extends CommonClass { json.dialerProxy, json.tcpFastOpen, json.tcpKeepAliveInterval, + json.tcpMptcp, json.tcpNoDelay, ); } @@ -384,6 +386,7 @@ class SockoptStreamSettings extends CommonClass { dialerProxy: this.dialerProxy, tcpFastOpen: this.tcpFastOpen, tcpKeepAliveInterval: this.tcpKeepAliveInterval, + tcpMptcp: this.tcpMptcp, tcpNoDelay: this.tcpNoDelay, }; } 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, }; } } |
