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 @@ - +