Files
netch/Netch/Servers/WireGuard/WireGuardServer.cs
Hellojack 860b70bfa6 Fix typo
2022-06-09 11:44:28 +08:00

39 lines
848 B
C#

using Netch.Models;
namespace Netch.Servers;
public class WireGuardServer : Server
{
public override string Type { get; } = "WireGuard";
public override string MaskedData()
{
return $"{LocalAddresses} + {MTU}";
}
/// <summary>
/// 本地地址
/// </summary>
public string LocalAddresses { get; set; } = "172.16.0.2";
/// <summary>
/// 节点公钥
/// </summary>
public string PeerPublicKey { get; set; } = string.Empty;
/// <summary>
/// 私钥
/// </summary>
public string PrivateKey { get; set; }
/// <summary>
/// 节点预共享密钥
/// </summary>
public string? PreSharedKey { get; set; }
/// <summary>
/// MTU
/// </summary>
public int MTU { get; set; } = 1420;
}