From 549f230221d7139270efefd76ac81f37e1a747f9 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Fri, 8 Dec 2023 16:46:44 +0100 Subject: optimize security in front codes #1300 --- web/html/xui/form/tls_settings.html | 30 ++++++++++-------------------- web/html/xui/inbound_modal.html | 2 +- 2 files changed, 11 insertions(+), 21 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html index 493aef75..eb201862 100644 --- a/web/html/xui/form/tls_settings.html +++ b/web/html/xui/form/tls_settings.html @@ -1,34 +1,24 @@ {{define "form/tlsSettings"}} - + - - - - - - - Reality + + + {{ i18n "none" }} + TLS - + XTLS - - - - - - XTLS - + Reality - - + diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index 99cb05fe..df42225c 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -93,7 +93,7 @@ }, methods: { streamNetworkChange() { - if (!inModal.inbound.canSetTls()) { + if (!inModal.inbound.canEnableTls()) { this.inModal.inbound.stream.security = 'none'; } if (!inModal.inbound.canEnableReality()) { -- cgit v1.2.3