From 1e0dabb43488d3a14d12d104a038bd9f8256ce97 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 2 Dec 2023 00:37:45 +0100 Subject: [PATCH] tiny changes #656 --- web/assets/js/model/xray.js | 5 ++--- web/html/xui/inbound_info_modal.html | 16 ++++++++-------- web/html/xui/settings.html | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 7745419c..5908fc3e 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -904,9 +904,8 @@ class Inbound extends XrayCommonClass { } get serverName() { - if (this.stream.isTls || this.stream.isReality) { - return this.stream.tls.server; - } + if (this.stream.isTls) return this.stream.tls.sni; + if (this.stream.isReality) return this.stream.reality.serverNames; return ""; } diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index 16ced4e5..ecfd867c 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -51,15 +51,15 @@ - - tls: {{ i18n "enabled" }}
- tls {{ i18n "domainName" }}: [[ inbound.serverName ? inbound.serverName : '' ]] + + {{ i18n "security" }} + [[ inbound.stream.security ]] +
+ - - reality: {{ i18n "enabled" }}
- reality Destination: [[ inbound.stream.reality.dest ]] - - tls: {{ i18n "disabled" }} diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index fdd59b76..ea7f0f06 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -176,7 +176,7 @@ - +