mirror of
https://github.com/alireza0/x-ui.git
synced 2026-08-27 03:43:28 +00:00
add dokodemo timeout #1200
This commit is contained in:
parent
d8ec07d926
commit
5bbb15bc98
2 changed files with 7 additions and 1 deletions
|
|
@ -2013,12 +2013,13 @@ Inbound.ShadowsocksSettings.Shadowsocks = class extends XrayCommonClass {
|
|||
};
|
||||
|
||||
Inbound.DokodemoSettings = class extends Inbound.Settings {
|
||||
constructor(protocol, address, port, network='tcp,udp', followRedirect=false) {
|
||||
constructor(protocol, address, port, network='tcp,udp', followRedirect=false, timeout=0) {
|
||||
super(protocol);
|
||||
this.address = address;
|
||||
this.port = port;
|
||||
this.network = network;
|
||||
this.followRedirect = followRedirect;
|
||||
this.timeout = timeout;
|
||||
}
|
||||
|
||||
static fromJson(json={}) {
|
||||
|
|
@ -2028,6 +2029,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
|
|||
json.port,
|
||||
json.network,
|
||||
json.followRedirect,
|
||||
json.timeout,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -2037,6 +2039,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
|
|||
port: this.port,
|
||||
network: this.network,
|
||||
followRedirect: this.followRedirect,
|
||||
timeout: this.timeout,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -16,5 +16,8 @@
|
|||
<a-form-item label='Follow Redirect'>
|
||||
<a-switch v-model="inbound.settings.followRedirect"></a-switch>
|
||||
</a-form-item>
|
||||
<a-form-item label='Timeout'>
|
||||
<a-input-number v-model.number="inbound.settings.timeout" :min="0"></a-input-number>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue