private IDisposable MakeMux(TunnelMultiplexer config) { TcpMultiplexer mux = new TcpMultiplexer(MakeSender(config.Target)); foreach (AddPort addport in config.Ports) mux.Add(MakeListener(config.IpEndpoint, addport.Port, config)); mux.SetLogDirectory(config.MonitoringDirectory); return mux.Start(); }
private IDisposable MakeMux(TunnelMultiplexer config) { TcpMultiplexer mux = new TcpMultiplexer(MakeSender(config.Target)); foreach (AddPort addport in config.Ports) { mux.Add(MakeListener(config.IpEndpoint, addport.Port, config)); } mux.SetLogDirectory(config.MonitoringDirectory); return(mux.Start()); }