LumaTunnel
【WinUI】LumaTunnel 是一个面向个人多设备的 Windows 代理系统。客户端在本机提供 HTTP/HTTPS CONNECT 与 SOCKS5 TCP 代理,并通过一个受信任 TLS 证书保护的 WSS 会话,将多个 TCP 流复用到自建 Windows Server 节点。
关注
0
Fork
0
Star
0
namespace LumaTunnel.Shared.Models;
public sealed record NodeProfile
{
public Guid Id { get; init; } = Guid.NewGuid();
public required string Name { get; init; }
public required Uri ApiUri { get; init; }
public required Uri TunnelUri { get; init; }
public string? DeviceId { get; init; }
public string? SecretReference { get; init; }
public int Priority { get; init; }
public bool Enabled { get; init; } = true;
public double? LastLatencyMilliseconds { get; init; }
public DateTimeOffset? LastHealthCheckUtc { get; init; }
}
public sealed record NodeHealthDto(
string NodeId,
string NodeName,
string ServerVersion,
byte ProtocolVersion,
DateTimeOffset UtcTime,
bool Healthy);
public sealed record NodeStatusDto(
string NodeId,
string NodeName,
string ServerVersion,
DateTimeOffset UtcTime,
int ActiveConnections,
int DeviceConnections,
long UploadBytes,
long DownloadBytes,
int MaxConnections,
IReadOnlyList<string> Features);
namespace LumaTunnel.Shared.Models;
public sealed record NodeProfile
{
public Guid Id { get; init; } = Guid.NewGuid();
public required string Name { get; init; }
public required Uri ApiUri { get; init; }
public required Uri TunnelUri { get; init; }
public string? DeviceId { get; init; }
public string? SecretReference { get; init; }
public int Priority { get; init; }
public bool Enabled { get; init; } = true;
public double? LastLatencyMilliseconds { get; init; }
public DateTimeOffset? LastHealthCheckUtc { get; init; }
}
public sealed record NodeHealthDto(
string NodeId,
string NodeName,
string ServerVersion,
byte ProtocolVersion,
DateTimeOffset UtcTime,
bool Healthy);
public sealed record NodeStatusDto(
string NodeId,
string NodeName,
string ServerVersion,
DateTimeOffset UtcTime,
int ActiveConnections,
int DeviceConnections,
long UploadBytes,
long DownloadBytes,
int MaxConnections,
IReadOnlyList<string> Features);