mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 01:38:59 +08:00
fix: 仅在 VMess/VLESS 且传输层为 http 时设置 Host 为数组
This commit is contained in:
parent
0141e48200
commit
26193301b3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user