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 18:38:25 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-05-22 21:06:49 +0300
commit68c9b55447a4508341d8947e038de35a3306bbb8 (patch)
tree65b5ce6ae5079d164676086ef16ff542bcb54554 /web/assets
parent70f9e32f28b1f24f7a5c60f53941cde5ebfd3978 (diff)
new - (TLS) disable System Root
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/xray.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index ec0b03e6..b8e85ff6 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -534,6 +534,7 @@ class TlsStreamSettings extends XrayCommonClass {
maxVersion = TLS_VERSION_OPTION.TLS13,
cipherSuites = '',
rejectUnknownSni = false,
+ disableSystemRoot = false,
certificates=[new TlsStreamSettings.Cert()],
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
settings=new TlsStreamSettings.Settings()) {
@@ -543,6 +544,7 @@ class TlsStreamSettings extends XrayCommonClass {
this.maxVersion = maxVersion;
this.cipherSuites = cipherSuites;
this.rejectUnknownSni = rejectUnknownSni;
+ this.disableSystemRoot = disableSystemRoot;
this.certs = certificates;
this.alpn = alpn;
this.settings = settings;
@@ -572,6 +574,7 @@ class TlsStreamSettings extends XrayCommonClass {
json.maxVersion,
json.cipherSuites,
json.rejectUnknownSni,
+ json.disableSystemRoot,
certs,
json.alpn,
settings,
@@ -585,6 +588,7 @@ class TlsStreamSettings extends XrayCommonClass {
maxVersion: this.maxVersion,
cipherSuites: this.cipherSuites,
rejectUnknownSni: this.rejectUnknownSni,
+ disableSystemRoot: this.disableSystemRoot,
certificates: TlsStreamSettings.toJsonArray(this.certs),
alpn: this.alpn,
settings: this.settings,
@@ -667,6 +671,7 @@ TlsStreamSettings.Settings = class extends XrayCommonClass {
};
}
};
+
class XtlsStreamSettings extends XrayCommonClass {
constructor(serverName='',
certificates=[new XtlsStreamSettings.Cert()],