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());
        }
Ejemplo n.º 2
0
 public void Add(TunnelMultiplexer service)
 {
     AddListener(service);
 }