mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:09:01 +08:00
修复了Surge VMess解析WS header错误的问题,感谢@Paldies
This commit is contained in:
parent
bf8be6e0cb
commit
433fe5446f
@ -1653,8 +1653,10 @@ var ProxyUtils = (function () {
|
||||
if (JSON.parse(params.ws || "false")) {
|
||||
proxy.network = "ws";
|
||||
proxy["ws-path"] = params["ws-path"];
|
||||
const res = params["ws-headers"].match(/(,|^|\s)*HOST:\s*(.*?)(,|$)/);
|
||||
const host = res ? res[2] : proxy.server;
|
||||
proxy["ws-headers"] = {
|
||||
Host: params.sni,
|
||||
Host: host || params.server,
|
||||
};
|
||||
}
|
||||
return proxy;
|
||||
|
4
backend/sub-store.min.js
vendored
4
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user