Add vmess ws obfs host script

This commit is contained in:
Peng-YM
2022-05-24 12:25:14 +08:00
parent 2da08c1817
commit 9c30654d31

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