Update genv2config.lua

修复insecure选项失效
This commit is contained in:
thank243 2018-11-27 12:02:00 +08:00 committed by coolsnowwolf
parent bb81f14df0
commit 36e8cbe6eb

View File

@ -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))
print(json.stringify(v2ray))