luci: add lazy start
option to Hysteria2 client
This commit is contained in:
parent
f7459f4f17
commit
dab77c4d77
@ -68,4 +68,8 @@ o = s:option(Flag, option_name("disable_mtu_discovery"), translate("Disable MTU
|
|||||||
o.default = "0"
|
o.default = "0"
|
||||||
o.rewrite_option = o.option
|
o.rewrite_option = o.option
|
||||||
|
|
||||||
|
o = s:option(Flag, option_name("lazy_start"), translate("Lazy Start"))
|
||||||
|
o.default = "0"
|
||||||
|
o.rewrite_option = o.option
|
||||||
|
|
||||||
api.luci_types(arg[1], m, s, type_name, option_prefix)
|
api.luci_types(arg[1], m, s, type_name, option_prefix)
|
||||||
|
@ -90,7 +90,7 @@ function gen_config(var)
|
|||||||
down = node.hysteria2_down_mbps and node.hysteria2_down_mbps .. " mbps" or "100 mbps"
|
down = node.hysteria2_down_mbps and node.hysteria2_down_mbps .. " mbps" or "100 mbps"
|
||||||
},
|
},
|
||||||
fast_open = (node.fast_open == "1") and true or false,
|
fast_open = (node.fast_open == "1") and true or false,
|
||||||
lazy = true,
|
lazy = (node.hysteria2_lazy_start == "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,
|
||||||
username = (local_socks_username and local_socks_password) and local_socks_username or nil,
|
username = (local_socks_username and local_socks_password) and local_socks_username or nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user