From 06a26953bcca76bd068a489a54f3a8c5468dea0f Mon Sep 17 00:00:00 2001 From: CMonk Date: Sun, 3 May 2026 02:31:42 +0800 Subject: [PATCH] fix: respect TLSSecure setting for VLESS in Clash export --- src/generator/config/subexport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator/config/subexport.cpp b/src/generator/config/subexport.cpp index 36f6269a5..9c5b1f84d 100644 --- a/src/generator/config/subexport.cpp +++ b/src/generator/config/subexport.cpp @@ -616,7 +616,7 @@ void proxyToClash(std::vector &nodes, YAML::Node &yamlnode, const ProxyGr break; case ProxyType::VLESS: singleproxy["type"] = "vless"; - singleproxy["tls"] = true; + singleproxy["tls"] = x.TLSSecure; // Output packet-encoding, xudp, packet-addr only if explicitly set if (!x.PacketEncoding.empty()) singleproxy["packet-encoding"] = x.PacketEncoding;