This commit is contained in:
Samuel Kadolph 2012-03-06 15:11:26 -05:00
parent b710babed6
commit 452121209b
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ module Proxifier
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)

View File

@ -23,7 +23,7 @@ module Proxifier
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)