Files
linker/linker/plugins/forward/config/Config.cs
snltty 5d2754d6cb sync
2024-06-24 21:59:50 +08:00

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; }
}
}