Skip to content

Commit

Permalink
get uot from Clash.Meta's subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
HystericalDragon authored and HystericalDragon committed Aug 12, 2023
1 parent f3c38f1 commit b7de4b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sub/GroupUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ namespace NekoGui_sub {
bean->password = Node2QString(proxy["password"]);
auto plugin_n = proxy["plugin"];
auto pluginOpts_n = proxy["plugin-opts"];

// UDP over TCP
if (Node2Bool(proxy["udp-over-tcp"])) {
bean->uot = Node2Int(proxy["udp-over-tcp-version"]);
if (bean->uot == 0) bean->uot = 2;
}

if (plugin_n.IsDefined() && pluginOpts_n.IsDefined()) {
QStringList ssPlugin;
auto plugin = Node2QString(plugin_n);
Expand Down

0 comments on commit b7de4b0

Please sign in to comment.