From 70e7987df5f3018d62cc39758824ebbdf2ee64ca Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 17 May 2023 00:55:19 +0330 Subject: [feature] multi cert per inbound Co-Authored-By: Alireza Ahmadi --- web/html/xui/inbound_modal.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web/html/xui/inbound_modal.html') diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index cb98f6a8..73ed6234 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -100,13 +100,13 @@ 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; }, - setDefaultCertXtls() { - inModal.inbound.stream.xtls.certs[0].certFile = app.defaultCert; - inModal.inbound.stream.xtls.certs[0].keyFile = app.defaultKey; + setDefaultCertXtls(index) { + inModal.inbound.stream.xtls.certs[index].certFile = app.defaultCert; + inModal.inbound.stream.xtls.certs[index].keyFile = app.defaultKey; }, async getNewX25519Cert() { inModal.loading(true); -- cgit v1.2.3