LumaTunnel
【WinUI】LumaTunnel 是一个面向个人多设备的 Windows 代理系统。客户端在本机提供 HTTP/HTTPS CONNECT 与 SOCKS5 TCP 代理,并通过一个受信任 TLS 证书保护的 WSS 会话,将多个 TCP 流复用到自建 Windows Server 节点。
关注
0
Fork
0
Star
0
using LumaTunnel.Server.Core.Runtime;
using LumaTunnel.Shared.Models;
using LumaTunnel.Shared.Protocol;
using XFEExtension.NetCore.ServerInteractive.Attributes;
using XFEExtension.NetCore.ServerInteractive.Implements.CoreService;
namespace LumaTunnel.Server.Core.Services;
public partial class HealthService : ServerCoreStandardServiceBase
{
[EntryPoint("v1/health")]
public async Task GetHealthAsync()
{
var runtime = ServerRuntime.Current;
await Close(new NodeHealthDto(
runtime.Settings.NodeId,
runtime.Settings.NodeName,
typeof(HealthService).Assembly.GetName().Version?.ToString(3) ?? "0.1.0",
TunnelProtocol.Version,
DateTimeOffset.UtcNow,
true)).ConfigureAwait(false);
}
}
using LumaTunnel.Server.Core.Runtime;
using LumaTunnel.Shared.Models;
using LumaTunnel.Shared.Protocol;
using XFEExtension.NetCore.ServerInteractive.Attributes;
using XFEExtension.NetCore.ServerInteractive.Implements.CoreService;
namespace LumaTunnel.Server.Core.Services;
public partial class HealthService : ServerCoreStandardServiceBase
{
[EntryPoint("v1/health")]
public async Task GetHealthAsync()
{
var runtime = ServerRuntime.Current;
await Close(new NodeHealthDto(
runtime.Settings.NodeId,
runtime.Settings.NodeName,
typeof(HealthService).Assembly.GetName().Version?.ToString(3) ?? "0.1.0",
TunnelProtocol.Version,
DateTimeOffset.UtcNow,
true)).ConfigureAwait(false);
}
}