Skip to content

Commit

Permalink
Merge pull request #1631 from zxlhhyccc/patch-3
Browse files Browse the repository at this point in the history
luci-app-ssr-plus: WS: Forbid "host" in "headers", read "serverName" instead
  • Loading branch information
coolsnowwolf authored Dec 19, 2024
2 parents ef42256 + 3ae5859 commit a758257
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a758257

Please sign in to comment.