luci-app-ssr-plus: add lazy_start support for hysteria

This commit is contained in:
SaFi-wi 2023-03-20 15:26:32 +08:00 committed by sbwml
parent 48cffe8b66
commit a4265a0332
3 changed files with 10 additions and 1 deletions

View File

@ -358,6 +358,11 @@ o = s:option(Flag, "disable_mtu_discovery", translate("Disable Path MTU discover
o:depends("type", "hysteria")
o.rmempty = true
o = s:option(Flag, "lazy_start", translate("Lazy Start"))
o:depends("type", "hysteria")
o.rmempty = true
o.default = "0"
-- [[ TUIC ]]
o = s:option(ListValue, "udp_relay_mode", translate("UDP relay mode"))
o:depends("type", "tuic")

View File

@ -115,6 +115,9 @@ msgstr "QUIC 连接接收窗口"
msgid "QUIC stream receive window"
msgstr "QUIC 流接收窗口"
msgid "Lazy Start"
msgstr "延迟启动"
msgid "Disable Path MTU discovery"
msgstr "禁用 MTU 探测"

View File

@ -320,7 +320,8 @@ local hysteria = {
recv_window_conn = tonumber(server.recv_window_conn),
recv_window = tonumber(server.recv_window),
disable_mtu_discovery = (server.disable_mtu_discovery == "1") and true or false,
fast_open = (server.fast_open == "1") and true or false
fast_open = (server.fast_open == "1") and true or false,
lazy_start = (server.lazy_start == "1") and true or false
}
local tuic = {
relay = {