mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
39 lines
846 B
C#
39 lines
846 B
C#
using Netch.Models;
|
|
|
|
namespace Netch.Servers;
|
|
|
|
public class WireGuardServer : Server
|
|
{
|
|
public override string Type { get; } = "WireGuard";
|
|
|
|
public override string MaskedData()
|
|
{
|
|
return $"{LocalAddress} + {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;
|
|
}
|