From cd98c4511b94a767d4460100c11c798c8432607b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com>
Date: Fri, 24 Sep 2021 10:55:09 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9D=9Ewindows=E4=BD=BF=E7=94=A8=E9=AB=98?=
=?UTF-8?q?=E7=AB=AF=E5=8F=A3=E7=9B=91=E5=90=AC=E5=8F=8D=E5=90=91=E4=BB=A3?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
FastGithub.Configuration/ReverseProxyPort.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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端口