Add vmess ws obfs host script

This commit is contained in:
Peng-YM 2022-05-24 12:25:14 +08:00
parent 47451c2df7
commit 975b53db41

View 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;
}