|
@@ -729,7 +729,7 @@ class RealityStreamSettings extends XrayCommonClass {
|
|
constructor(
|
|
constructor(
|
|
show = false,
|
|
show = false,
|
|
xver = 0,
|
|
xver = 0,
|
|
- dest = 'google.com:443',
|
|
|
|
|
|
+ target = 'google.com:443',
|
|
serverNames = 'google.com,www.google.com',
|
|
serverNames = 'google.com,www.google.com',
|
|
privateKey = '',
|
|
privateKey = '',
|
|
minClientVer = '',
|
|
minClientVer = '',
|
|
@@ -742,7 +742,7 @@ class RealityStreamSettings extends XrayCommonClass {
|
|
super();
|
|
super();
|
|
this.show = show;
|
|
this.show = show;
|
|
this.xver = xver;
|
|
this.xver = xver;
|
|
- this.dest = dest;
|
|
|
|
|
|
+ this.target = target;
|
|
this.serverNames = Array.isArray(serverNames) ? serverNames.join(",") : serverNames;
|
|
this.serverNames = Array.isArray(serverNames) ? serverNames.join(",") : serverNames;
|
|
this.privateKey = privateKey;
|
|
this.privateKey = privateKey;
|
|
this.minClientVer = minClientVer;
|
|
this.minClientVer = minClientVer;
|
|
@@ -767,7 +767,7 @@ class RealityStreamSettings extends XrayCommonClass {
|
|
return new RealityStreamSettings(
|
|
return new RealityStreamSettings(
|
|
json.show,
|
|
json.show,
|
|
json.xver,
|
|
json.xver,
|
|
- json.dest,
|
|
|
|
|
|
+ json.target,
|
|
json.serverNames,
|
|
json.serverNames,
|
|
json.privateKey,
|
|
json.privateKey,
|
|
json.minClientVer,
|
|
json.minClientVer,
|
|
@@ -783,7 +783,7 @@ class RealityStreamSettings extends XrayCommonClass {
|
|
return {
|
|
return {
|
|
show: this.show,
|
|
show: this.show,
|
|
xver: this.xver,
|
|
xver: this.xver,
|
|
- dest: this.dest,
|
|
|
|
|
|
+ target: this.target,
|
|
serverNames: this.serverNames.split(","),
|
|
serverNames: this.serverNames.split(","),
|
|
privateKey: this.privateKey,
|
|
privateKey: this.privateKey,
|
|
minClientVer: this.minClientVer,
|
|
minClientVer: this.minClientVer,
|