mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
40 lines
784 B
C#
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;
|
|
}
|
|
}
|
|
} |