mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
fix
This commit is contained in:
parent
b91a618f42
commit
a013246d88
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue