FastGithub/FastGithub.ReverseProxy/HttpsReverseProxyPort.cs
2021-09-14 20:30:14 +08:00

18 lines
448 B
C#

using FastGithub.Configuration;
using System;
using System.Net.Sockets;
namespace FastGithub.ReverseProxy
{
/// <summary>
/// https反向代理端口
/// </summary>
static class HttpsReverseProxyPort
{
/// <summary>
/// 获取端口值
/// </summary>
public static int Value { get; } = OperatingSystem.IsWindows() ? 443 : LocalMachine.GetAvailableTcpPort(AddressFamily.InterNetwork);
}
}