From ce6e4ed600612ea586ab9061213f4600741ef9e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Mon, 1 Nov 2021 17:13:42 +0800 Subject: [PATCH] =?UTF-8?q?ssh=E6=B5=81=E9=87=8F=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.HttpServer/KestrelServerOptionsExtensions.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs b/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs index 56bd15c..731f4bc 100644 --- a/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs +++ b/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs @@ -56,7 +56,11 @@ namespace FastGithub public static void ListenSshReverseProxy(this KestrelServerOptions kestrel) { var sshPort = ReverseProxyPort.Ssh; - kestrel.Listen(IPAddress.Loopback, sshPort, listen => listen.UseConnectionHandler()); + kestrel.Listen(IPAddress.Loopback, sshPort, listen => + { + listen.UseFlowAnalyze(); + listen.UseConnectionHandler(); + }); if (OperatingSystem.IsWindows()) {