From 1aee3950f4a5a63b8c774a18647ecbb41d64089b Mon Sep 17 00:00:00 2001 From: DHR60 Date: Mon, 3 Nov 2025 19:18:18 +0800 Subject: [PATCH] Fix (#8244) --- .../CoreConfig/Singbox/SingboxOutboundService.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs index 9cffb352..4db9d7cb 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/Singbox/SingboxOutboundService.cs @@ -268,10 +268,13 @@ public partial class CoreConfigSingboxService .Select(s => s + "\n-----END CERTIFICATE-----") .Select(s => s.Replace("\r\n", "\n")) .ToList() ?? new(); - tls.certificate = certs.Count > 0 ? certs : null; - tls.insecure = false; + if (certs.Count > 0) + { + tls.certificate = certs; + tls.insecure = false; + } } - else + else if (node.StreamSecurity == Global.StreamSecurityReality) { tls.reality = new Reality4Sbox() {