From 36e8cbe6ebf0f6bdf7815a8bcfbafb581c19d41d Mon Sep 17 00:00:00 2001 From: thank243 Date: Tue, 27 Nov 2018 12:02:00 +0800 Subject: [PATCH] Update genv2config.lua MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复insecure选项失效 --- .../root/usr/share/shadowsocksr/genv2config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/genv2config.lua b/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/genv2config.lua index d9b767a34..c325df221 100644 --- a/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/genv2config.lua +++ b/package/lean/luci-app-ssr-plus/root/usr/share/shadowsocksr/genv2config.lua @@ -46,7 +46,7 @@ local v2ray = { streamSettings = { network = server.transport, security = (server.tls == '1') and "tls" or "none", - allowInsecure = (server.insecure == "1") and true or false, + tlsSettings = {allowInsecure = (server.insecure == "1") and true or false,}, kcpSettings = (server.transport == "kcp") and { mtu = tonumber(server.mtu), tti = tonumber(server.tti), @@ -84,4 +84,4 @@ local v2ray = { } } } -print(json.stringify(v2ray)) \ No newline at end of file +print(json.stringify(v2ray))