mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-03-01 01:20:49 +03:00
add dokodemo timeout
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
d1f67f7f2f
commit
94eb27d2c4
@ -2281,12 +2281,13 @@ 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) {
|
constructor(protocol, address, port, network='tcp,udp', followRedirect=false, timeout=0) {
|
||||||
super(protocol);
|
super(protocol);
|
||||||
this.address = address;
|
this.address = address;
|
||||||
this.port = port;
|
this.port = port;
|
||||||
this.network = network;
|
this.network = network;
|
||||||
this.followRedirect = followRedirect;
|
this.followRedirect = followRedirect;
|
||||||
|
this.timeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json={}) {
|
static fromJson(json={}) {
|
||||||
@ -2296,6 +2297,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
|
|||||||
json.port,
|
json.port,
|
||||||
json.network,
|
json.network,
|
||||||
json.followRedirect,
|
json.followRedirect,
|
||||||
|
json.timeout,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2305,6 +2307,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
|
|||||||
port: this.port,
|
port: this.port,
|
||||||
network: this.network,
|
network: this.network,
|
||||||
followRedirect: this.followRedirect,
|
followRedirect: this.followRedirect,
|
||||||
|
timeout: this.timeout,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -16,5 +16,8 @@
|
|||||||
<a-form-item label='Follow Redirect'>
|
<a-form-item label='Follow Redirect'>
|
||||||
<a-switch v-model="inbound.settings.followRedirect"></a-switch>
|
<a-switch v-model="inbound.settings.followRedirect"></a-switch>
|
||||||
</a-form-item>
|
</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>
|
</a-form>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -549,7 +549,7 @@
|
|||||||
"datetime" = "⏰ تاریخوزمان: {{ .DateTime }}\r\n"
|
"datetime" = "⏰ تاریخوزمان: {{ .DateTime }}\r\n"
|
||||||
"hostname" = "💻 ناممیزبان: {{ .Hostname }}\r\n"
|
"hostname" = "💻 ناممیزبان: {{ .Hostname }}\r\n"
|
||||||
"version" = "🚀 نسخهپنل: {{ .Version }}\r\n"
|
"version" = "🚀 نسخهپنل: {{ .Version }}\r\n"
|
||||||
"xrayVersion" = "📡 نسخو ڪور: {{ .XrayVersion }}\r\n"
|
"xrayVersion" = "📡 نسخههسته: {{ .XrayVersion }}\r\n"
|
||||||
"ipv6" = "🌐 IPv6: {{ .IPv6 }}\r\n"
|
"ipv6" = "🌐 IPv6: {{ .IPv6 }}\r\n"
|
||||||
"ipv4" = "🌐 IPv4: {{ .IPv4 }}\r\n"
|
"ipv4" = "🌐 IPv4: {{ .IPv4 }}\r\n"
|
||||||
"ip" = "🌐 آدرسآیپی: {{ .IP }}\r\n"
|
"ip" = "🌐 آدرسآیپی: {{ .IP }}\r\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user