diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-22 17:01:41 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-05-22 17:01:41 +0300 |
| commit | 1fa9101b405ad1ba0127317ea4f8a151048b97ee (patch) | |
| tree | e03a93684953b3473a717a283953464bf368008a /web/html/xui/inbound_modal.html | |
| parent | 3f2e1aede90984d3bafab377509f712e5ce51ec0 (diff) | |
[feature] add multi domain tls (CDN ready)
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbound_modal.html')
| -rw-r--r-- | web/html/xui/inbound_modal.html | 12 |
1 files changed, 12 insertions, 0 deletions
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() { |
