diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 4e4bad78..5f111a99 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -478,8 +478,8 @@ class TlsStreamSettings extends XrayCommonClass {
this.settings = settings;
}
- addCert(cert) {
- this.certs.push(cert);
+ addCert() {
+ this.certs.push(new TlsStreamSettings.Cert());
}
removeCert(index) {
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index b3252d3e..5077bc9d 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -25,7 +25,7 @@
CipherSuites |
-
+
auto
[[ key ]]
@@ -36,7 +36,7 @@
| MinVersion |
-
+
[[ key ]]
@@ -46,7 +46,7 @@
| MaxVersion |
-
+
[[ key ]]
@@ -57,7 +57,7 @@
|
+ style="width: 250px" :dropdown-class-name="themeSwitcher.darkCardClass">
None
[[ key ]]
@@ -90,57 +90,61 @@
|
-
- |
-
-
- {{ i18n "pages.inbounds.certificatePath" }}
- {{ i18n "pages.inbounds.certificateContent" }}
-
-
- |
-
-
-
- | {{ i18n "pages.inbounds.publicKeyPath" }} |
-
-
-
-
- |
-
-
- | {{ i18n "pages.inbounds.keyPath" }} |
-
-
-
-
- |
-
-
- |
-
- {{ i18n "pages.inbounds.setDefaultCert" }}
- |
-
-
-
-
- | {{ i18n "pages.inbounds.publicKeyContent" }} |
-
-
-
-
- |
-
-
- | {{ i18n "pages.inbounds.keyContent" }} |
-
-
-
-
- |
-
+
+
+ |
+
+
+ {{ i18n "pages.inbounds.certificatePath" }}
+ {{ i18n "pages.inbounds.certificateContent" }}
+ +
+ -
+
+
+ |
+
+
+
+ | {{ i18n "pages.inbounds.publicKeyPath" }} |
+
+
+
+
+ |
+
+
+ | {{ i18n "pages.inbounds.keyPath" }} |
+
+
+
+
+ |
+
+
+ |
+
+ {{ i18n "pages.inbounds.setDefaultCert" }}
+ |
+
+
+
+
+ | {{ i18n "pages.inbounds.publicKeyContent" }} |
+
+
+
+
+ |
+
+
+ | {{ i18n "pages.inbounds.keyContent" }} |
+
+
+
+
+ |
+
+
@@ -177,7 +181,7 @@
+ style="width: 250px" :dropdown-class-name="themeSwitcher.darkCardClass">
[[ key ]]
diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html
index fad8b88f..7c5e6889 100644
--- a/web/html/xui/inbound_modal.html
+++ b/web/html/xui/inbound_modal.html
@@ -100,9 +100,9 @@
this.inModal.inbound.reality = false;
}
},
- setDefaultCertData(){
- inModal.inbound.stream.tls.certs[0].certFile = app.defaultCert;
- inModal.inbound.stream.tls.certs[0].keyFile = app.defaultKey;
+ setDefaultCertData(index){
+ inModal.inbound.stream.tls.certs[index].certFile = app.defaultCert;
+ inModal.inbound.stream.tls.certs[index].keyFile = app.defaultKey;
},
async getNewX25519Cert(){
inModal.loading(true);
| |