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();
|
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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue