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-08-04 01:07:33 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-08-04 01:07:33 +0300
commitd8d9c648471886f8e65b8d69ce5405fcc58598f5 (patch)
tree51bf846763ad196e1d8c1e85ee4fbe62604b2022
parentc489673130281bb32670a0f337d12ceddda177f4 (diff)
new - cert (build Chain)
-rw-r--r--web/assets/js/model/xray.js17
-rw-r--r--web/html/xui/form/tls_settings.html3
2 files changed, 19 insertions, 1 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index e63e594c..5c3f3010 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -648,7 +648,17 @@ class TlsStreamSettings extends XrayCommonClass {
}
TlsStreamSettings.Cert = class extends XrayCommonClass {
- constructor(useFile=true, certificateFile='', keyFile='', certificate='', key='', ocspStapling=3600, oneTimeLoading=false, usage=USAGE_OPTION.ENCIPHERMENT) {
+ constructor(
+ useFile = true,
+ certificateFile = '',
+ keyFile = '',
+ certificate = '',
+ key = '',
+ ocspStapling = 3600,
+ oneTimeLoading = false,
+ usage = USAGE_OPTION.ENCIPHERMENT,
+ buildChain = false,
+ ) {
super();
this.useFile = useFile;
this.certFile = certificateFile;
@@ -658,6 +668,7 @@ TlsStreamSettings.Cert = class extends XrayCommonClass {
this.ocspStapling = ocspStapling;
this.oneTimeLoading = oneTimeLoading;
this.usage = usage;
+ this.buildChain = buildChain
}
static fromJson(json={}) {
@@ -669,6 +680,7 @@ TlsStreamSettings.Cert = class extends XrayCommonClass {
json.ocspStapling,
json.oneTimeLoading,
json.usage,
+ json.buildChain,
);
} else {
return new TlsStreamSettings.Cert(
@@ -678,6 +690,7 @@ TlsStreamSettings.Cert = class extends XrayCommonClass {
json.ocspStapling,
json.oneTimeLoading,
json.usage,
+ json.buildChain,
);
}
}
@@ -690,6 +703,7 @@ TlsStreamSettings.Cert = class extends XrayCommonClass {
ocspStapling: this.ocspStapling,
oneTimeLoading: this.oneTimeLoading,
usage: this.usage,
+ buildChain: this.buildChain,
};
} else {
return {
@@ -698,6 +712,7 @@ TlsStreamSettings.Cert = class extends XrayCommonClass {
ocspStapling: this.ocspStapling,
oneTimeLoading: this.oneTimeLoading,
usage: this.usage,
+ buildChain: this.buildChain,
};
}
}
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index 16eb8acb..51e599bf 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -104,6 +104,9 @@
<a-select-option v-for="key in USAGE_OPTION" :value="key">[[ key ]]</a-select-option>
</a-select>
</a-form-item>
+ <a-form-item label="Build Chain">
+ <a-switch v-model="cert.buildChain"></a-switch>
+ </a-form-item>
</template>
</template>