This commit is contained in:
mhsanaei 2025-11-01 13:06:45 +01:00
parent b91a618f42
commit a013246d88
No known key found for this signature in database
GPG key ID: D875CD086CF668A0

View file

@ -741,12 +741,12 @@ class RealityStreamSettings extends XrayCommonClass {
) { ) {
super(); super();
// If target/serverNames are not provided, use random values // If target/serverNames are not provided, use random values
if (!target || !serverNames) { if (!target && !serverNames) {
const randomTarget = typeof getRandomRealityTarget !== 'undefined' const randomTarget = typeof getRandomRealityTarget !== 'undefined'
? getRandomRealityTarget() ? getRandomRealityTarget()
: { target: 'google.com:443', sni: 'google.com,www.google.com' }; : { target: 'google.com:443', sni: 'google.com,www.google.com' };
target = target || randomTarget.target; target = randomTarget.target;
serverNames = serverNames || randomTarget.sni; serverNames = randomTarget.sni;
} }
this.show = show; this.show = show;
this.xver = xver; this.xver = xver;