mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 02:34:06 +00:00
Fix error about v2ray-http-upgrade for vless.(#31)
This commit is contained in:
1 parent
4ae0d1b0bd
commit
cc9e3b77d4
4 files changed
+18
-9
No files matched your search
@@ -647,6 +647,9 @@ proxyToClash(std::vector<Proxy> &nodes, YAML::Node &yamlnode, const ProxyGroupCo
|
||||
singleproxy["ws-opts"]["headers"]["Host"] = x.Host;
|
||||
if (!x.Edge.empty())
|
||||
singleproxy["ws-opts"]["headers"]["Edge"] = x.Edge;
|
||||
if (!x.V2rayHttpUpgrade.is_undef()) {
|
||||
singleproxy["ws-opts"]["v2ray-http-upgrade"] = x.V2rayHttpUpgrade.get();
|
||||
}
|
||||
} else {
|
||||
singleproxy["ws-path"] = x.Path;
|
||||
if (!x.Host.empty())
|
||||
|
||||
Reference in new issue
Block a user