luci-app-ssr-plus: support Hysteria Fast Open
Fast Open can shave off one RTT for every connection at the cost of the correct semantics of SOCKS5/HTTP/TUN protocols. When enabled, the client will always accept a connection immediately without confirming with the server that its destination is reachable. If the server then fails to connect or rejects the connection, the client will just close it without sending any data.
This commit is contained in:
parent
ff859510b7
commit
0ee2aead11
@ -772,6 +772,7 @@ o.default = "0"
|
||||
o:depends("type", "ssr")
|
||||
o:depends("type", "ss")
|
||||
o:depends("type", "trojan")
|
||||
o:depends("type", "hysteria")
|
||||
|
||||
if is_installed("sagernet-core") then
|
||||
o = s:option(ListValue, "packet_encoding", translate("Packet Encoding"))
|
||||
|
@ -311,7 +311,8 @@ local hysteria = {
|
||||
ca = (server.certificate) and server.certpath or nil,
|
||||
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
|
||||
disable_mtu_discovery = (server.disable_mtu_discovery == "1") and true or false,
|
||||
fast_open = (server.fast_open == "1") and true or false
|
||||
}
|
||||
local config = {}
|
||||
function config:new(o)
|
||||
|
Loading…
Reference in New Issue
Block a user