diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-07 12:15:58 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-07 12:15:58 +0300 |
| commit | 594d682e202b30164aa7f9c510ec5955ed871541 (patch) | |
| tree | f1f7d7bfd4f48fa48e8a29b0da3ed57788bec2e6 /web/assets/js/model | |
| parent | 70f250dfe1e24249a4cc8102e3fef65959dfb15a (diff) | |
random sub Id
optimize utils
trojan short id fix
index page better view
Diffstat (limited to 'web/assets/js/model')
| -rw-r--r-- | web/assets/js/model/xray.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index bc8d4d4a..33cd10d5 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -708,7 +708,7 @@ class RealityStreamSettings extends XrayCommonClass { minClient = '', maxClient = '', maxTimediff = 0, - shortIds = RandomUtil.randomShortId(), + shortIds = RandomUtil.randomShortId(8), settings= new RealityStreamSettings.Settings() ){ super(); @@ -1655,7 +1655,7 @@ Inbound.VmessSettings = class extends Inbound.Settings { } }; Inbound.VmessSettings.Vmess = class extends XrayCommonClass { - constructor(id=RandomUtil.randomUUID(), alterId=0, email=RandomUtil.randomText(),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId='') { + constructor(id=RandomUtil.randomUUID(), alterId=0, email=RandomUtil.randomText(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomText(16)) { super(); this.id = id; this.alterId = alterId; @@ -1747,7 +1747,7 @@ Inbound.VLESSSettings = class extends Inbound.Settings { }; Inbound.VLESSSettings.VLESS = class extends XrayCommonClass { - constructor(id=RandomUtil.randomUUID(), flow='', email=RandomUtil.randomText(),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId='') { + constructor(id=RandomUtil.randomUUID(), flow='', email=RandomUtil.randomText(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomText(16)) { super(); this.id = id; this.flow = flow; @@ -1870,7 +1870,7 @@ Inbound.TrojanSettings = class extends Inbound.Settings { } }; Inbound.TrojanSettings.Trojan = class extends XrayCommonClass { - constructor(password=RandomUtil.randomSeq(10), flow='', email=RandomUtil.randomText(),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId='') { + constructor(password=RandomUtil.randomSeq(10), flow='', email=RandomUtil.randomText(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomText(16)) { super(); this.password = password; this.flow = flow; @@ -2012,7 +2012,7 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { }; Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass { - constructor(password=RandomUtil.randomShadowsocksPassword(), email=RandomUtil.randomText(),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId='') { + constructor(password=RandomUtil.randomShadowsocksPassword(), email=RandomUtil.randomText(8),limitIp=0, totalGB=0, expiryTime=0, enable=true, tgId='', subId=RandomUtil.randomText(16)) { super(); this.password = password; this.email = email; |
