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
path: root/web
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-08-29 21:44:59 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-08-29 21:44:59 +0300
commitba673778ea744e34ef5f306c9ce44104ff699099 (patch)
tree4e9cf9b1d2f23c3d39ecd4ee658cdfe99c999868 /web
parent8698024b6153aaf1298389c3aa418aa8e7b6322a (diff)
fixed - Transparent Proxy button
Diffstat (limited to 'web')
-rw-r--r--web/assets/js/model/xray.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 2b337c9f..f7e13be2 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -421,7 +421,6 @@ class HttpStreamSettings extends XrayCommonClass {
}
}
-
class QuicStreamSettings extends XrayCommonClass {
constructor(security=VmessMethods.NONE,
key=RandomUtil.randomSeq(10), type='none') {
@@ -483,7 +482,7 @@ class TlsStreamSettings extends XrayCommonClass {
cipherSuites = '',
rejectUnknownSni = false,
certificates=[new TlsStreamSettings.Cert()],
- alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
+ alpn=[ALPN_OPTION.HTTP1,ALPN_OPTION.H2],
settings=new TlsStreamSettings.Settings()) {
super();
this.server = serverName;
@@ -816,6 +815,7 @@ class SockoptStreamSettings extends XrayCommonClass {
this.tproxy = tproxy;
}
static fromJson(json = {}) {
+ if (Object.keys(json).length === 0) return undefined;
return new SockoptStreamSettings(
json.acceptProxyProtocol,
json.tcpFastOpen,
@@ -823,6 +823,7 @@ class SockoptStreamSettings extends XrayCommonClass {
json.tproxy,
);
}
+
toJson() {
return {
acceptProxyProtocol: this.acceptProxyProtocol,