mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
update fmt
This commit is contained in:
@@ -69,11 +69,9 @@ namespace NekoGui_fmt {
|
|||||||
outbound->insert("tls", tls);
|
outbound->insert("tls", tls);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!packet_encoding.isEmpty()) {
|
auto pkt = packet_encoding;
|
||||||
auto pkt = packet_encoding;
|
if (pkt == "packet") pkt = "packetaddr";
|
||||||
if (pkt == "packet") pkt = "packetaddr";
|
outbound->insert("packet_encoding", pkt);
|
||||||
outbound->insert("packet_encoding", pkt);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CoreObjOutboundBuildResult SocksHttpBean::BuildCoreObjSingBox() {
|
CoreObjOutboundBuildResult SocksHttpBean::BuildCoreObjSingBox() {
|
||||||
|
|||||||
@@ -270,6 +270,13 @@ namespace NekoGui_sub {
|
|||||||
if (type == "vless") {
|
if (type == "vless") {
|
||||||
bean->flow = Node2QString(proxy["flow"]);
|
bean->flow = Node2QString(proxy["flow"]);
|
||||||
bean->password = Node2QString(proxy["uuid"]);
|
bean->password = Node2QString(proxy["uuid"]);
|
||||||
|
// meta vless xudp
|
||||||
|
auto xudp = proxy["xudp"];
|
||||||
|
if (xudp.IsDefined() && !xudp.IsNull() && Node2Bool(xudp) == false) {
|
||||||
|
bean->stream->packet_encoding = "";
|
||||||
|
} else {
|
||||||
|
bean->stream->packet_encoding = "xudp";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bean->password = Node2QString(proxy["password"]);
|
bean->password = Node2QString(proxy["password"]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user