mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-12 04:59:03 +08:00
Add vmess ws obfs host script
This commit is contained in:
parent
47451c2df7
commit
975b53db41
9
scripts/vmess-ws-obfs-host.js
Normal file
9
scripts/vmess-ws-obfs-host.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
function operator(proxies) {
|
||||||
|
const host = $arguments.host;
|
||||||
|
proxies.forEach(p => {
|
||||||
|
if (p.type === 'vmess') {
|
||||||
|
p["ws-opts"]["headers"]["Host"] = host;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return proxies;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user