update 2023-03-20 16:24:43

This commit is contained in:
github-actions[bot]
2023-03-20 16:24:43 +08:00
parent 758e774008
commit f56cb86837
11 changed files with 98 additions and 94 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 = {

View File

@@ -223,10 +223,10 @@ local function processData(szType, content)
end
if info.tls == "tls" or info.tls == "1" then
result.tls = "1"
if info.host then
result.tls_host = info.host
elseif info.sni then
if info.sni and info.sni ~= "" then
result.tls_host = info.sni
elseif info.host then
result.tls_host = info.host
end
result.insecure = 1
else