Explorar o código

luci-app-ssr-plus: fix wrong datatype of hysteria config

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen %!s(int64=3) %!d(string=hai) anos
pai
achega
95fd2d0877

+ 2 - 2
luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

@@ -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 = {}