mirror of
https://github.com/snltty/linker.git
synced 2025-10-17 06:30:46 +08:00
29 lines
740 B
C#
29 lines
740 B
C#
using LiteDB;
|
|
using System.Net;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Linker.Client.Config
|
|
{
|
|
public sealed partial class RunningConfigInfo
|
|
{
|
|
public List<ForwardInfo> Forwards { get; set; }= new List<ForwardInfo>();
|
|
}
|
|
|
|
public sealed class ForwardInfo
|
|
{
|
|
public uint Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string MachineId { get; set; }
|
|
|
|
public IPAddress BindIPAddress { get; set; } = IPAddress.Any;
|
|
public int Port { get; set; }
|
|
public IPEndPoint TargetEP { get; set; }
|
|
public bool Started { get; set; }
|
|
public string Msg { get; set; }
|
|
|
|
[JsonIgnore,BsonIgnore]
|
|
public bool Proxy { get; set; }
|
|
|
|
}
|
|
}
|