From b9c3cd85345c1a47b14e0a74de5be089243d6812 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 17 May 2023 00:55:19 +0330 Subject: [PATCH] [feature] multi cert per inbound Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/xray.js | 8 ++-- web/html/xui/form/tls_settings.html | 68 ++++++++++++++++------------- web/html/xui/inbound_modal.html | 12 ++--- 3 files changed, 48 insertions(+), 40 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 2954957c..efd059f9 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -482,8 +482,8 @@ class TlsStreamSettings extends XrayCommonClass { this.settings = settings; } - addCert(cert) { - this.certs.push(cert); + addCert() { + this.certs.push(new TlsStreamSettings.Cert()); } removeCert(index) { @@ -599,8 +599,8 @@ class XtlsStreamSettings extends XrayCommonClass { this.settings = settings; } - addCert(cert) { - this.certs.push(cert); + addCert() { + this.certs.push(new XtlsStreamSettings.Cert()); } removeCert(index) { diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html index 81506d8a..9d6c03d6 100644 --- a/web/html/xui/form/tls_settings.html +++ b/web/html/xui/form/tls_settings.html @@ -70,27 +70,31 @@ - - - {{ i18n "pages.inbounds.certificatePath" }} - {{ i18n "pages.inbounds.certificateContent" }} - - -