lib/forwardmachine/forwarder_connection.rb
def post_init
      logger.info("Client #{peer} connected to forwarder #{@forwarder}")
      EM.connect(@destination_host, @destination_port,
        ForwardedConnection, self)
    rescue RuntimeError => e
      logger.error("Client #{peer} on #{@forwarder} couldn't be connected with destination")
      logger.close
      close_connection
    end
# Internal: After client is connected to forwarder, open connection
# to destination host and port
After client is connected to forwarder, open connection
to destination host and port
After client is connected to forwarder open connection to destination host and port
def post_init
      logger.info("Client #{peer} connected to forwarder #{@forwarder}")
      EM.connect(@destination_host, @destination_port,
        ForwardedConnection, self)
    rescue RuntimeError => e
      logger.error("Client #{peer} on #{@forwarder} couldn't be connected with destination")
      logger.close
      close_connection
    end
def post_init logger . info ( "Client #{peer} connected to forwarder #{@forwarder}" ) EM . connect ( @destination_host , @destination_port , ForwardedConnection , self ) rescue RuntimeError => e logger . error ( "Client #{peer} on #{@forwarder} couldn't be connected with destination" ) logger . close close_connection end
Internal: After client is connected to forwarder, open connection
to destination host and port
Internal : After client is connected to forwarder open connection to destination host and port