Esempio n. 1
0
		private IDisposable MakeRedirect(TunnelListener config)
		{
            TcpRedirector redir = new TcpRedirector(
                MakeListener(config.IpEndpoint, config.Port, config),
                MakeSender(config.Target)
                );
            redir.SetLogDirectory(config.MonitoringDirectory);
            redir.Start();
            return redir;
		}
        private IDisposable MakeRedirect(TunnelListener config)
        {
            TcpRedirector redir = new TcpRedirector(
                MakeListener(config.IpEndpoint, config.Port, config),
                MakeSender(config.Target)
                );

            redir.SetLogDirectory(config.MonitoringDirectory);
            redir.Start();
            return(redir);
        }