luci: add Hysteria fast_open
option
This commit is contained in:
parent
08b4cda31b
commit
f04ecb1b69
@ -51,6 +51,7 @@ local config = {
|
|||||||
idle_timeout = (node.hysteria_idle_timeout) and tonumber(node.hysteria_idle_timeout) or nil,
|
idle_timeout = (node.hysteria_idle_timeout) and tonumber(node.hysteria_idle_timeout) or nil,
|
||||||
hop_interval = (node.hysteria_hop_interval) and tonumber(node.hysteria_hop_interval) or nil,
|
hop_interval = (node.hysteria_hop_interval) and tonumber(node.hysteria_hop_interval) or nil,
|
||||||
disable_mtu_discovery = (node.hysteria_disable_mtu_discovery) and true or false,
|
disable_mtu_discovery = (node.hysteria_disable_mtu_discovery) and true or false,
|
||||||
|
fast_open = (node.fast_open == "1") and true or false,
|
||||||
socks5 = (local_socks_address and local_socks_port) and {
|
socks5 = (local_socks_address and local_socks_port) and {
|
||||||
listen = local_socks_address .. ":" .. local_socks_port,
|
listen = local_socks_address .. ":" .. local_socks_port,
|
||||||
timeout = 300,
|
timeout = 300,
|
||||||
|
@ -450,7 +450,7 @@ timeout:depends("type", "SS")
|
|||||||
timeout:depends("type", "SS-Rust")
|
timeout:depends("type", "SS-Rust")
|
||||||
timeout:depends("type", "SSR")
|
timeout:depends("type", "SSR")
|
||||||
|
|
||||||
tcp_fast_open = s:option(ListValue, "tcp_fast_open", translate("TCP Fast Open"), translate("Need node support required"))
|
tcp_fast_open = s:option(ListValue, "tcp_fast_open", "TCP " .. translate("Fast Open"), translate("Need node support required"))
|
||||||
tcp_fast_open:value("false")
|
tcp_fast_open:value("false")
|
||||||
tcp_fast_open:value("true")
|
tcp_fast_open:value("true")
|
||||||
tcp_fast_open:depends("type", "SS")
|
tcp_fast_open:depends("type", "SS")
|
||||||
@ -460,6 +460,10 @@ tcp_fast_open:depends("type", "Trojan")
|
|||||||
tcp_fast_open:depends("type", "Trojan-Plus")
|
tcp_fast_open:depends("type", "Trojan-Plus")
|
||||||
tcp_fast_open:depends("type", "Trojan-Go")
|
tcp_fast_open:depends("type", "Trojan-Go")
|
||||||
|
|
||||||
|
fast_open = s:option(Flag, "fast_open", translate("Fast Open"))
|
||||||
|
fast_open.default = "0"
|
||||||
|
fast_open:depends("type", "Hysteria")
|
||||||
|
|
||||||
ss_plugin = s:option(ListValue, "ss_plugin", translate("plugin"))
|
ss_plugin = s:option(ListValue, "ss_plugin", translate("plugin"))
|
||||||
ss_plugin:value("none", translate("none"))
|
ss_plugin:value("none", translate("none"))
|
||||||
if api.is_finded("xray-plugin") then ss_plugin:value("xray-plugin") end
|
if api.is_finded("xray-plugin") then ss_plugin:value("xray-plugin") end
|
||||||
|
@ -997,8 +997,8 @@ msgstr "连接超时时间"
|
|||||||
msgid "Local Port"
|
msgid "Local Port"
|
||||||
msgstr "本地端口"
|
msgstr "本地端口"
|
||||||
|
|
||||||
msgid "TCP Fast Open"
|
msgid "Fast Open"
|
||||||
msgstr "TCP 快速打开"
|
msgstr "快速打开"
|
||||||
|
|
||||||
msgid "Need node support required"
|
msgid "Need node support required"
|
||||||
msgstr "需要节点支持"
|
msgstr "需要节点支持"
|
||||||
|
Loading…
Reference in New Issue
Block a user