From e5fc20b8ae357c7ddb456a17b39ab406cc6ad585 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Fri, 8 Dec 2023 19:44:52 +0100 Subject: small fixes #1300 --- web/assets/js/model/xray.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/assets/js') diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 291f0adc..ba8b322e 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1080,9 +1080,9 @@ class Inbound extends XrayCommonClass { } get serverName() { - if (this.stream.isTls || this.stream.isXtls || this.stream.isReality) { - return this.stream.tls.server; - } + if (this.stream.isTls) return this.stream.tls.server; + if (this.stream.isXtls) return this.stream.xtls.server; + if (this.stream.isReality) return this.stream.reality.serverNames; return ""; } -- cgit v1.2.3