2
0
陈国伟 3 жил өмнө
parent
commit
ce6e4ed600

+ 5 - 1
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<SshReverseProxyHandler>());
+            kestrel.Listen(IPAddress.Loopback, sshPort, listen =>
+            {
+                listen.UseFlowAnalyze();
+                listen.UseConnectionHandler<SshReverseProxyHandler>();
+            });
 
             if (OperatingSystem.IsWindows())
             {