mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 20:13:56 +08:00
update 2026-09-16 17:00:28
This commit is contained in:
1 parent
f5923596c5
commit
7f7cbbe9c8
1964 files changed
+33
-1523391
No files matched your search
@@ -88,7 +88,16 @@ local function build_common(node)
|
||||
if net == "ws" then
|
||||
local opts = node["ws-opts"]
|
||||
if opts then
|
||||
o.transport.path = opts.path
|
||||
local path = opts.path or "/"
|
||||
local ed = opts["max-early-data"]
|
||||
local eh = opts["early-data-header-name"]
|
||||
if ed then
|
||||
path = path .. "?ed=" .. ed
|
||||
end
|
||||
if eh then
|
||||
path = path .. (path:find("?", 1, true) and "&eh=" or "?eh=") .. eh
|
||||
end
|
||||
o.transport.path = path
|
||||
o.transport.host = opts.headers and opts.headers.Host
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user