|
@@ -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,
|
|
|
};
|
|
|
}
|
|
|
};
|