From ef0a48de236ad151244eb695f5421d186bf910d2 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 | 106 +++++++++++++++------------- web/html/xui/inbound_modal.html | 6 +- 3 files changed, 60 insertions(+), 56 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 30fe1a18..5077bc9d 100644 --- a/web/html/xui/form/tls_settings.html +++ b/web/html/xui/form/tls_settings.html @@ -90,57 +90,61 @@ - - - - - {{ i18n "pages.inbounds.certificatePath" }} - {{ i18n "pages.inbounds.certificateContent" }} - - - - - -