From a013246d88bbc124956820c3429c1abf81da5aef Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sat, 1 Nov 2025 13:06:45 +0100 Subject: [PATCH] fix --- web/assets/js/model/inbound.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index e9b6224b..0718b20c 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -741,12 +741,12 @@ class RealityStreamSettings extends XrayCommonClass { ) { super(); // If target/serverNames are not provided, use random values - if (!target || !serverNames) { - const randomTarget = typeof getRandomRealityTarget !== 'undefined' - ? getRandomRealityTarget() + if (!target && !serverNames) { + const randomTarget = typeof getRandomRealityTarget !== 'undefined' + ? getRandomRealityTarget() : { target: 'google.com:443', sni: 'google.com,www.google.com' }; - target = target || randomTarget.target; - serverNames = serverNames || randomTarget.sni; + target = randomTarget.target; + serverNames = randomTarget.sni; } this.show = show; this.xver = xver;