ssh流量分析

This commit is contained in:
陈国伟 2021-11-01 17:13:42 +08:00
parent 06f1718045
commit ce6e4ed600

View File

@ -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())
{