浏览代码

Merge pull request #1631 from zxlhhyccc/patch-3

luci-app-ssr-plus: WS: Forbid "host" in "headers", read "serverName" instead
coolsnowwolf 10 月之前
父节点
当前提交
a758257bca
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua

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

@@ -245,10 +245,7 @@ end
 				} or nil,
 				wsSettings = (server.transport == "ws") and (server.ws_path or server.ws_host or server.tls_host) and {
 					-- ws
-					headers = (server.ws_host or server.tls_host) and {
-						-- headers
-						Host = server.ws_host or server.tls_host
-					} or nil,
+					Host = server.ws_host or server.tls_host or nil,
 					path = server.ws_path,
 					maxEarlyData = tonumber(server.ws_ed) or nil,
 					earlyDataHeaderName = server.ws_ed_header or nil