luci-app-ssr-plus: gen_config: generate flow for REALITY

Signed-off-by: zihelyu <zihelyu@dawnwl.com>
This commit is contained in:
zihelyu 2023-03-13 18:03:00 +08:00 committed by sbwml
parent 1de37ae5f1
commit 1f35af01e3

View File

@ -22,7 +22,7 @@ function vmess_vless()
id = server.vmess_id, id = server.vmess_id,
security = (server.v2ray_protocol == "vmess" or not server.v2ray_protocol) and server.security or nil, security = (server.v2ray_protocol == "vmess" or not server.v2ray_protocol) and server.security or nil,
encryption = (server.v2ray_protocol == "vless") and server.vless_encryption or nil, encryption = (server.v2ray_protocol == "vless") and server.vless_encryption or nil,
flow = (server.tls == '1') and server.tls_flow or nil flow = ((server.tls == '1') or (server.reality == '1')) and server.tls_flow or nil
} }
} }
} }