mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 23:40:30 +00:00
fix: 仅在 VMess/VLESS 且传输层为 http 时设置 Host 为数组
This commit is contained in:
1 parent
272974ff39
commit
4ca9ab33b1
1 file changed
+3
-1
@@ -216,7 +216,9 @@ function lastParse(proxy) {
|
||||
proxy[`${proxy.network}-opts`].headers =
|
||||
proxy[`${proxy.network}-opts`].headers || {};
|
||||
proxy[`${proxy.network}-opts`].headers.Host =
|
||||
proxy.network === 'http' ? [proxy.server] : proxy.server;
|
||||
['vmess', 'vless'].includes(proxy.type) && proxy.network === 'http'
|
||||
? [proxy.server]
|
||||
: proxy.server;
|
||||
}
|
||||
return proxy;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user