mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-18 05:04:40 +03:00
add dokodemo timeout
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
@@ -2281,12 +2281,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={}) {
|
||||
@@ -2296,6 +2297,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
|
||||
json.port,
|
||||
json.network,
|
||||
json.followRedirect,
|
||||
json.timeout,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2305,6 +2307,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
|
||||
port: this.port,
|
||||
network: this.network,
|
||||
followRedirect: this.followRedirect,
|
||||
timeout: this.timeout,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user