mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
fix packet encoding (#774)
* feat(sub): get packet encoding from Clash.Meta's sub * fix: use "packetaddr" instead of "packet" * fix * fix --------- Co-authored-by: 2022-blake3-chacha8-poly1305 <139959885+xchacha20-ietf-poly1305@users.noreply.github.com>
This commit is contained in:
@@ -70,12 +70,8 @@ namespace NekoGui_fmt {
|
||||
outbound->insert("tls", tls);
|
||||
}
|
||||
|
||||
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", "");
|
||||
if (outbound->value("type").toString() == "vmess" || outbound->value("type").toString() == "vless") {
|
||||
outbound->insert("packet_encoding", packet_encoding);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user