This commit is contained in:
DHR60 2025-11-03 19:18:18 +08:00 committed by GitHub
parent 091b79f7cf
commit 1aee3950f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -268,10 +268,13 @@ public partial class CoreConfigSingboxService
.Select(s => s + "\n-----END CERTIFICATE-----") .Select(s => s + "\n-----END CERTIFICATE-----")
.Select(s => s.Replace("\r\n", "\n")) .Select(s => s.Replace("\r\n", "\n"))
.ToList() ?? new(); .ToList() ?? new();
tls.certificate = certs.Count > 0 ? certs : null; if (certs.Count > 0)
tls.insecure = false; {
tls.certificate = certs;
tls.insecure = false;
}
} }
else else if (node.StreamSecurity == Global.StreamSecurityReality)
{ {
tls.reality = new Reality4Sbox() tls.reality = new Reality4Sbox()
{ {