lib/proxifier/env.rb in proxifier-1.0.2 vs lib/proxifier/env.rb in proxifier-1.0.3

- old
+ new

@@ -4,10 +4,10 @@ module Proxifier class Proxy def open(host, port, local_host = nil, local_port = nil) return TCPSocket.new(host, port, local_host, local_port, :proxy => nil) unless proxify?(host) - socket = TCPSocket.new(proxy.host, proxy.port, local_host, local_port, :proxy => nil) + socket = TCPSocket.new(self.host, self.port, local_host, local_port, :proxy => nil) begin proxify(socket, host, port) rescue socket.close