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" }} - - - - - -