diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index a4547aabc..ed2fe210e 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall PKG_VERSION:=4.61 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \ diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/node_config.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/node_config.lua index 3540ef09c..df27a5676 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/node_config.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/node_config.lua @@ -932,6 +932,9 @@ hysteria_hop_interval:depends("type", "Hysteria") hysteria_disable_mtu_discovery = s:option(Flag, "hysteria_disable_mtu_discovery", translate("Disable MTU detection")) hysteria_disable_mtu_discovery:depends("type", "Hysteria") +hysteria_lazy_start = s:option(Flag, "hysteria_lazy_start", translate("Lazy Start")) +hysteria_lazy_start:depends("type", "Hysteria") + protocol.validate = function(self, value) if value == "_shunt" or value == "_balancing" then address.rmempty = true diff --git a/luci-app-passwall/luasrc/passwall/util_hysteria.lua b/luci-app-passwall/luasrc/passwall/util_hysteria.lua index 9212147c7..28df1ee96 100644 --- a/luci-app-passwall/luasrc/passwall/util_hysteria.lua +++ b/luci-app-passwall/luasrc/passwall/util_hysteria.lua @@ -77,6 +77,7 @@ function gen_config(var) 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, fast_open = (node.fast_open == "1") and true or false, + lazy_start = (node.hysteria_lazy_start) and true or false, socks5 = (local_socks_address and local_socks_port) and { listen = local_socks_address .. ":" .. local_socks_port, timeout = 300, diff --git a/luci-app-passwall/po/zh-cn/passwall.po b/luci-app-passwall/po/zh-cn/passwall.po index 9c7b0209e..df8508604 100644 --- a/luci-app-passwall/po/zh-cn/passwall.po +++ b/luci-app-passwall/po/zh-cn/passwall.po @@ -490,6 +490,9 @@ msgstr "QUIC 连接接收窗口" msgid "Disable MTU detection" msgstr "禁用 MTU 检测" +msgid "Lazy Start" +msgstr "延迟启动" + msgid "Encrypt Method" msgstr "加密"