26 lines
863 B
C#
26 lines
863 B
C#
using System.Text.Json.Nodes;
|
|
|
|
namespace Proxd_man.Config.TransportLayerSecurity;
|
|
|
|
public class TlsSecuritySetting : BaseTransportLayerSecuritySetting
|
|
{
|
|
|
|
public string? ServerName { get; init; } = null;
|
|
public bool IsRejectUnknownSni { get; init; } = false;
|
|
public List<string> Alpn { get; init; } = ["h2", "http/1.1"];
|
|
public string MinVersion { get; init; } = "1.2";
|
|
public string MaxVersion { get; init; } = "1.3";
|
|
public string? CipherSuites { get; init; } = null;
|
|
public bool IsAllowInsecure { get; init; } = false;
|
|
public string FingerPrint { get; init; } = "chrome";
|
|
|
|
public TlsSecuritySetting()
|
|
{
|
|
TransportLayerSecurityType = TransportLayerSecurityType.Tls;
|
|
}
|
|
|
|
public override void ApplyJsonSetting(JsonObject streamSettingJson)
|
|
{
|
|
streamSettingJson.Add("security", "tls");
|
|
}
|
|
} |