OSDN Git Service

luci-app-ssr-plus: sync fixes
authorTianling Shen <cnsztl@immortalwrt.org>
Fri, 10 Jun 2022 13:44:57 +0000 (21:44 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Fri, 10 Jun 2022 13:44:57 +0000 (21:44 +0800)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
applications/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua
applications/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

index 401f6d4..c31a56d 100644 (file)
@@ -414,11 +414,13 @@ o.rmempty = true
 o = s:option(Value, "ws_ed", translate("Max Early Data"))
 o:depends("transport", "ws")
 o.datatype = "uinteger"
+o.default = 2048
 o.rmempty = true
 
 -- WS前置数据标头
 o = s:option(Value, "ws_ed_header", translate("Early Data Header Name"))
 o:depends("transport", "ws")
+o.default = "Sec-WebSocket-Protocol"
 o.rmempty = true
 
 -- [[ H2部分 ]]--
index e0ad76a..181ab62 100755 (executable)
@@ -302,8 +302,8 @@ local hysteria = {
        server_name = server.tls_host,
        insecure = (server.insecure == "1") and true or false,
        ca = (server.certificate) and server.certpath or nil,
-       recv_window_conn = server.recv_window_conn,
-       recv_window = server.recv_window,
+       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
 }
 local config = {}