lib/sockit/connection.rb in sockit-1.1.1 vs lib/sockit/connection.rb in sockit-1.2.0

- old
+ new

@@ -1,11 +1,11 @@ module Sockit module Connection def direct_connect(socket, remote_host, remote_port, local_host=nil, local_port=nil) - log(:yellow, "Directly connecting to #{remote_host}:#{remote_port}") + Sockit.enabled? and log(:yellow, "Directly connecting to #{remote_host}:#{remote_port}") socket.__send__(:initialize_tcp, remote_host, remote_port, local_host=nil, local_port=nil) - log(:green, "Connected to #{remote_host}:#{remote_port}") + Sockit.enabled? and log(:green, "Connected to #{remote_host}:#{remote_port}") end def connect(socket, host, port) log(:yellow, "Connecting to SOCKS v#{config.version} server #{config.host}:#{config.port}")