fix vless support bug

This commit is contained in:
asdlokj1qpi23
2023-12-20 11:06:02 +08:00
parent 9f8067ab11
commit 26f8f51eb5

View File

@@ -2176,7 +2176,7 @@ proxyToSingBox(std::vector<Proxy> &nodes, rapidjson::Document &json, std::vector
break;
}
case ProxyType::VLESS: {
addSingBoxCommonMembers(proxy, x, "vmess", allocator);
addSingBoxCommonMembers(proxy, x, "vless", allocator);
proxy.AddMember("uuid", rapidjson::StringRef(x.UserId.c_str()), allocator);
if (xudp && udp)
proxy.AddMember("packet_encoding", rapidjson::StringRef("xudp"), allocator);