From 94eb27d2c49757a026f29b17c5b5d63374416737 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 8 May 2024 21:31:58 +0200 Subject: [PATCH] add dokodemo timeout Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/xray.js | 5 ++++- web/html/xui/form/protocol/dokodemo.html | 3 +++ web/translation/translate.fa_IR.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 7fffffd40..e57b2b2bf 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -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, }; } }; diff --git a/web/html/xui/form/protocol/dokodemo.html b/web/html/xui/form/protocol/dokodemo.html index 70ffe7e07..e7e1d9508 100644 --- a/web/html/xui/form/protocol/dokodemo.html +++ b/web/html/xui/form/protocol/dokodemo.html @@ -16,5 +16,8 @@ + + + {{end}} diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index 547700f5d..ad7f2b2c4 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -549,7 +549,7 @@ "datetime" = "⏰ تاریخ‌وزمان: {{ .DateTime }}\r\n" "hostname" = "💻 نام‌میزبان: {{ .Hostname }}\r\n" "version" = "🚀 نسخه‌پنل: {{ .Version }}\r\n" -"xrayVersion" = "📡 نسخو ڪور: {{ .XrayVersion }}\r\n" +"xrayVersion" = "📡 نسخه‌هسته: {{ .XrayVersion }}\r\n" "ipv6" = "🌐 IPv6: {{ .IPv6 }}\r\n" "ipv4" = "🌐 IPv4: {{ .IPv4 }}\r\n" "ip" = "🌐 آدرس‌آی‌پی: {{ .IP }}\r\n"