diff --git a/FastGithub.Configuration/ReverseProxyPort.cs b/FastGithub.Configuration/ReverseProxyPort.cs index ad2edf5..e14e140 100644 --- a/FastGithub.Configuration/ReverseProxyPort.cs +++ b/FastGithub.Configuration/ReverseProxyPort.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; @@ -23,7 +24,7 @@ namespace FastGithub.Configuration /// /// https端口 /// - public static int Https { get; } = GetAvailableTcpPort(443); + public static int Https { get; } = OperatingSystem.IsWindows() ? GetAvailableTcpPort(443) : GetAvailableTcpPort(48457); /// /// 获取可用的随机Tcp端口