From 5bbb15bc98832e2aee622f6b4513c16fccd655a7 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Fri, 3 May 2024 21:21:08 +0200 Subject: [PATCH] add dokodemo timeout #1200 --- web/assets/js/model/xray.js | 5 ++++- web/html/xui/form/protocol/dokodemo.html | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 3f4076d4..cec4354d 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -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, }; } }; diff --git a/web/html/xui/form/protocol/dokodemo.html b/web/html/xui/form/protocol/dokodemo.html index f8cc4049..f3275338 100644 --- a/web/html/xui/form/protocol/dokodemo.html +++ b/web/html/xui/form/protocol/dokodemo.html @@ -16,5 +16,8 @@ + + + {{end}}