From 7f00d312ca463b35a7de4562e28adcf4953f2869 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sat, 14 Aug 2021 17:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=BC=BA=E5=88=B6=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E5=8D=A0=E7=94=A822=E5=92=8C80=E7=AB=AF=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E8=BF=9B=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../KestrelServerOptionsExtensions.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs index 811ef0d..e8a5c7e 100644 --- a/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs +++ b/FastGithub.ReverseProxy/KestrelServerOptionsExtensions.cs @@ -23,11 +23,6 @@ namespace FastGithub public static void ListenHttpReverseProxy(this KestrelServerOptions kestrel) { const int HTTP_PORT = 80; - if (OperatingSystem.IsWindows()) - { - TcpTable.KillPortOwner(HTTP_PORT); - } - if (LocalMachine.CanListenTcp(HTTP_PORT) == false) { var loggerFactory = kestrel.ApplicationServices.GetRequiredService(); @@ -78,11 +73,6 @@ namespace FastGithub public static void ListenGithubSshProxy(this KestrelServerOptions kestrel) { const int SSH_PORT = 22; - if (OperatingSystem.IsWindows()) - { - TcpTable.KillPortOwner(SSH_PORT); - } - if (LocalMachine.CanListenTcp(SSH_PORT) == false) { var loggerFactory = kestrel.ApplicationServices.GetRequiredService();