mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Add vmess ws obfs host script
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user