From b1f7f5cacb700e30f81181e3da2c7a57506e3039 Mon Sep 17 00:00:00 2001 From: slackworker Date: Fri, 1 May 2026 23:17:29 +0800 Subject: [PATCH] fix: respect merged UDP option in Clash export Co-authored-by: Cursor --- src/generator/config/subexport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator/config/subexport.cpp b/src/generator/config/subexport.cpp index 36f6269a5..54505406e 100644 --- a/src/generator/config/subexport.cpp +++ b/src/generator/config/subexport.cpp @@ -718,8 +718,8 @@ void proxyToClash(std::vector &nodes, YAML::Node &yamlnode, const ProxyGr // UDP is not supported yet in clash using snell // sees in https://dreamacro.github.io/clash/configuration/outbound.html#snell // Output UDP field when explicitly provided (true or false) - if(!x.UDP.is_undef() && x.Type != ProxyType::Snell) - singleproxy["udp"] = x.UDP.get(); + if(!udp.is_undef() && x.Type != ProxyType::Snell) + singleproxy["udp"] = udp.get(); if(!tfo.is_undef()) singleproxy["tfo"] = tfo.get(); if(proxy_block)