From 74595b2785aebaa6ac135e2a613258a5c307618e Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 15 May 2023 21:26:08 +0200 Subject: [PATCH] [feature] multi cert per inbound #290 --- web/assets/js/model/xray.js | 4 +- web/html/xui/form/tls_settings.html | 116 ++++++++++++++-------------- web/html/xui/inbound_modal.html | 6 +- 3 files changed, 65 insertions(+), 61 deletions(-) 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" }} - - - - - -