Files
netch/Netch/Servers/Trojan/TrojanServer.cs
Hellojack 9983ee95d6 fix
2022-06-07 09:29:43 +08:00

40 lines
784 B
C#

using Netch.Models;
namespace Netch.Servers;
public class TrojanServer : Server
{
private string _tlsSecureType = VLESSGlobal.TLSSecure[1];
public override string Type { get; } = "Trojan";
public override string MaskedData()
{
return "";
}
/// <summary>
/// 密码
/// </summary>
public string Password { get; set; } = string.Empty;
/// <summary>
/// 伪装域名
/// </summary>
public string? Host { get; set; }
/// <summary>
/// TLS 底层传输安全
/// </summary>
public string TLSSecureType
{
get => _tlsSecureType;
set
{
if (value == "")
value = VLESSGlobal.TLSSecure[1];
_tlsSecureType = value;
}
}
}