From b7de4b0675bc80140e8ef51349f9294b9cc04ee9 Mon Sep 17 00:00:00 2001 From: HystericalDragon <138737572+HystericalDragon@users.noreply.github.com> Date: Sat, 12 Aug 2023 08:18:27 +0800 Subject: [PATCH] get uot from Clash.Meta's subscription --- sub/GroupUpdater.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sub/GroupUpdater.cpp b/sub/GroupUpdater.cpp index f50e224..1f5db61 100644 --- a/sub/GroupUpdater.cpp +++ b/sub/GroupUpdater.cpp @@ -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);