Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions v2rayN/ServiceLib/Models/CoreConfigs/SingboxConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public class Tls4Sbox
public string? server_name { get; set; }
public bool? insecure { get; set; }
public List<string>? alpn { get; set; }
public List<string>? cipher_suites { get; set; }
public Utls4Sbox? utls { get; set; }
public Reality4Sbox? reality { get; set; }
public bool? fragment { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,15 @@ private void FillOutboundTls(Outbound4Sbox outbound)
}
if (_node.StreamSecurity == Global.StreamSecurity)
{
if (_node.CipherSuites.IsNotEmpty())
{
// Xray stores cipher suites as a colon-separated string; sing-box wants a list of the same Go TLS names
tls.cipher_suites = _node.CipherSuites
.Split([':', ','], StringSplitOptions.RemoveEmptyEntries)
.Select(c => c.Trim())
.Where(c => c.IsNotEmpty())
.ToList();
}
var certs = CertPemManager.ParsePemChain(_node.Cert);
if (certs.Count > 0)
{
Expand Down