fix: VLESS packet_encoding defaults to empty instead of xudp

This commit is contained in:
FizzVPN 2024-10-11 17:57:26 +03:00 committed by Mahdi
parent 0625514358
commit 53643a833f
2 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,9 @@ namespace NekoGui_fmt {
if (!flow.isEmpty()) {
query.addQueryItem("flow", flow);
}
if (!stream->packet_encoding.isEmpty()) {
query.addQueryItem("packetEncoding", stream->packet_encoding);
}
query.addQueryItem("encryption", "none");
}

View File

@ -111,6 +111,7 @@ namespace NekoGui_fmt {
// protocol
if (proxy_type == proxy_VLESS) {
flow = GetQueryValue(query, "flow", "");
stream->packet_encoding = GetQueryValue(query, "packetEncoding", "xudp");
}
return !(password.isEmpty() || serverAddress.isEmpty());