mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-01 16:44:45 +08:00
update 2026-06-20 01:51:37
This commit is contained in:
1 parent
1ec80fbc61
commit
f85f422a5a
2 files changed
+13
-2
No files matched your search
@@ -99,7 +99,9 @@ local function build_common(node)
|
||||
elseif net == "http" then
|
||||
local opts = node["http-opts"]
|
||||
if opts then
|
||||
o.transport.host = get_first(opts.host)
|
||||
-- Clash http-opts carries the camouflage Host under headers.Host
|
||||
-- (a list), like ws-opts; opts.host is not standard for http.
|
||||
o.transport.host = get_first(opts.host) or (opts.headers and get_first(opts.headers.Host))
|
||||
o.transport.path = get_first(opts.path)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user