luci-app-ssr-plus: fix V2 TLS configuration servername issue

This commit is contained in:
Mattraks 2020-12-08 09:17:20 +08:00 committed by CN_SZTL
parent 1b2c199ba9
commit 74da1b1048
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -58,7 +58,7 @@ outbound = {
streamSettings = {
network = server.transport,
security = (server.tls == '1') and ((server.xtls == '1') and "xtls" or "tls") or "none",
tlsSettings = (server.tls == '1' and server.xtls == '0') and {allowInsecure = (server.insecure ~= "0") and true or nil,serverName=server.tls_host,} or nil,
tlsSettings = (server.tls == '1' and server.xtls ~= '1') and {allowInsecure = (server.insecure ~= "0") and true or nil,serverName=server.tls_host,} or nil,
xtlsSettings = (server.xtls == '1') and {allowInsecure = (server.insecure ~= "0") and true or nil,serverName=server.tls_host,} or nil,
tcpSettings = (server.transport == "tcp" and server.tcp_guise == "http") and {
header = {