mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-20 05:52:24 +00:00
Dokodemo - default timeout to 30s
This commit is contained in:
parent
d319476eb6
commit
2ec5eeb442
1 changed files with 33 additions and 3 deletions
|
@ -2296,8 +2296,20 @@ Inbound.TrojanSettings = class extends Inbound.Settings {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Inbound.TrojanSettings.Trojan = class extends XrayCommonClass {
|
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();
|
super();
|
||||||
this.password = password;
|
this.password = password;
|
||||||
this.flow = flow;
|
this.flow = flow;
|
||||||
|
@ -2442,7 +2454,18 @@ Inbound.ShadowsocksSettings = class extends Inbound.Settings {
|
||||||
};
|
};
|
||||||
|
|
||||||
Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass {
|
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();
|
super();
|
||||||
this.method = method;
|
this.method = method;
|
||||||
this.password = password;
|
this.password = password;
|
||||||
|
@ -2514,7 +2537,14 @@ Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass {
|
||||||
};
|
};
|
||||||
|
|
||||||
Inbound.DokodemoSettings = class extends Inbound.Settings {
|
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);
|
super(protocol);
|
||||||
this.address = address;
|
this.address = address;
|
||||||
this.port = port;
|
this.port = port;
|
||||||
|
|
Loading…
Reference in a new issue