feat: 目前完成了订阅功能和 Xray-Core 的更新管理.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user