lib/proxymachine/client_connection.rb in fizx-proxymachine-1.6.0 vs lib/proxymachine/client_connection.rb in fizx-proxymachine-1.6.1
- old
+ new
@@ -40,9 +40,10 @@
# server has been established. If a remote can be established, an
# attempt is made to connect and proxy to the remote server.
def establish_remote_server
fail "establish_remote_server called with remote established" if @remote
@routes = [ProxyMachine.router.call(@buffer.join)].flatten
+ try_connect
end
def try_connect
@commands = @routes.shift
$logger.info "#{peer} #{@commands.inspect}"