ssh流量分析
This commit is contained in:
parent
06f1718045
commit
ce6e4ed600
@ -56,7 +56,11 @@ namespace FastGithub
|
|||||||
public static void ListenSshReverseProxy(this KestrelServerOptions kestrel)
|
public static void ListenSshReverseProxy(this KestrelServerOptions kestrel)
|
||||||
{
|
{
|
||||||
var sshPort = ReverseProxyPort.Ssh;
|
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())
|
if (OperatingSystem.IsWindows())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user