lib/proxifier/proxy.rb in proxifier-1.0.2 vs lib/proxifier/proxy.rb in proxifier-1.0.3
- old
+ new
@@ -21,10 +21,10 @@
end
def open(host, port, local_host = nil, local_port = nil)
return TCPSocket.new(host, port, local_host, local_port) unless proxify?(host)
- socket = TCPSocket.new(proxy.host, proxy.port, local_host, local_port)
+ socket = TCPSocket.new(self.host, self.port, local_host, local_port)
begin
proxify(socket, host, port)
rescue
socket.close