This commit is contained in:
arm64v8a
2023-06-14 17:32:01 +09:00
parent f29c82a938
commit 0decd3f341
5 changed files with 12 additions and 8 deletions

View File

@@ -69,9 +69,13 @@ namespace NekoGui_fmt {
outbound->insert("tls", tls);
}
auto pkt = packet_encoding;
if (pkt == "packet") pkt = "packetaddr";
outbound->insert("packet_encoding", pkt);
if (!packet_encoding.isEmpty()) {
auto pkt = packet_encoding;
if (pkt == "packet") pkt = "packetaddr";
outbound->insert("packet_encoding", pkt);
} else if (outbound->value("type").toString() == "vless") {
outbound->insert("packet_encoding", "");
}
}
CoreObjOutboundBuildResult SocksHttpBean::BuildCoreObjSingBox() {