瀏覽代碼

Merge pull request #261 from Mattraks/dev/tls

Fix V2 TLS configuration servername issue
coolsnowwolf 4 年之前
父節點
當前提交
da21d84747
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      luci-app-ssr-plus/root/usr/share/shadowsocksr/genv2config.lua

+ 1 - 1
luci-app-ssr-plus/root/usr/share/shadowsocksr/genv2config.lua

@@ -58,7 +58,7 @@ outbound = {
 	streamSettings = {
 	streamSettings = {
 		network = server.transport,
 		network = server.transport,
 		security = (server.tls == '1') and ((server.xtls == '1') and "xtls" or "tls") or "none",
 		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,
 		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 {
 		tcpSettings = (server.transport == "tcp" and server.tcp_guise == "http") and {
 			header = {
 			header = {