From 1fa9101b405ad1ba0127317ea4f8a151048b97ee Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 22 May 2023 17:31:41 +0330 Subject: [feature] add multi domain tls (CDN ready) Co-Authored-By: Alireza Ahmadi --- web/html/xui/inbound_modal.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (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 73ed6234..25e19473 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -90,6 +90,18 @@ set delayedExpireDays(days) { this.client.expiryTime = -86400000 * days; }, + get multiDomain() { + return this.inbound.stream.tls.settings.domains.length > 0; + }, + set multiDomain(value) { + if (value) { + inModal.inbound.stream.tls.server = ""; + inModal.inbound.stream.tls.settings.domains = [{remark: "", domain: window.location.host.split(":")[0]}]; + } else { + inModal.inbound.stream.tls.server = ""; + inModal.inbound.stream.tls.settings.domains = []; + } + } }, methods: { streamNetworkChange() { -- cgit v1.2.3