Fix error about v2ray-http-upgrade for vless.(#31)

This commit is contained in:
asdlokj1qpi23 committed 2025-05-06 10:14:15 +08:00
1 parent 4ae0d1b0bd
commit cc9e3b77d4
4 files changed
+18 -9

No files matched your search

+3
View File
@@ -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())