mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
refactor uot
This commit is contained in:
@@ -106,7 +106,16 @@ namespace NekoGui_fmt {
|
||||
outbound["server_port"] = serverPort;
|
||||
outbound["method"] = method;
|
||||
outbound["password"] = password;
|
||||
outbound["udp_over_tcp"] = uot;
|
||||
|
||||
if (uot != 0) {
|
||||
QJsonObject udp_over_tcp{
|
||||
{"enabled", true},
|
||||
{"version", uot},
|
||||
};
|
||||
outbound["udp_over_tcp"] = udp_over_tcp;
|
||||
} else {
|
||||
outbound["udp_over_tcp"] = false;
|
||||
}
|
||||
|
||||
if (!plugin.trimmed().isEmpty()) {
|
||||
outbound["plugin"] = SubStrBefore(plugin, ";");
|
||||
|
||||
Reference in New Issue
Block a user