diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-08-11 13:41:21 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-08-11 13:41:21 +0300 |
| commit | 2ec5eeb442bde73012bd7bc06e53234d566973c2 (patch) | |
| tree | 2aae0eabfe14be1fd581511aad04be75b735df5f /web/assets | |
| parent | d319476eb6e7b9426b2441069d619284e1ab6ac2 (diff) | |
Dokodemo - default timeout to 30s
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/model/xray.js | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index a02e57fe..b43452b6 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -2296,8 +2296,20 @@ Inbound.TrojanSettings = class extends Inbound.Settings { }; } }; + Inbound.TrojanSettings.Trojan = class extends XrayCommonClass { - constructor(password = RandomUtil.randomSeq(10), flow = '', email = RandomUtil.randomLowerAndNum(8), limitIp = 0, totalGB = 0, expiryTime = 0, enable = true, tgId = '', subId = RandomUtil.randomLowerAndNum(16), reset = 0) { + constructor( + password = RandomUtil.randomSeq(10), + flow = '', + email = RandomUtil.randomLowerAndNum(8), + limitIp = 0, + totalGB = 0, + expiryTime = 0, + enable = true, + tgId = '', + subId = RandomUtil.randomLowerAndNum(16), + reset = 0 + ) { super(); this.password = password; this.flow = flow; @@ -2442,7 +2454,18 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings { }; Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass { - constructor(method = '', password = RandomUtil.randomShadowsocksPassword(), email = RandomUtil.randomLowerAndNum(8), limitIp = 0, totalGB = 0, expiryTime = 0, enable = true, tgId = '', subId = RandomUtil.randomLowerAndNum(16), reset = 0) { + constructor( + method = '', + password = RandomUtil.randomShadowsocksPassword(), + email = RandomUtil.randomLowerAndNum(8), + limitIp = 0, + totalGB = 0, + expiryTime = 0, + enable = true, + tgId = '', + subId = RandomUtil.randomLowerAndNum(16), + reset = 0 + ) { super(); this.method = method; this.password = password; @@ -2514,7 +2537,14 @@ Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass { }; Inbound.DokodemoSettings = class extends Inbound.Settings { - constructor(protocol, address, port, network = 'tcp,udp', followRedirect = false, timeout = 0) { + constructor( + protocol, + address, + port, + network = 'tcp,udp', + followRedirect = false, + timeout = 30 + ) { super(protocol); this.address = address; this.port = port; |
