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}}