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();