فهرست منبع

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 = {
 		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 = {