diff --git a/scripts/vmess-ws-obfs-host.js b/scripts/vmess-ws-obfs-host.js new file mode 100644 index 0000000..c048dc2 --- /dev/null +++ b/scripts/vmess-ws-obfs-host.js @@ -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; +} \ No newline at end of file