From 452121209b3125cccb9e2831f3227438d9eec71a Mon Sep 17 00:00:00 2001 From: Samuel Kadolph Date: Tue, 6 Mar 2012 15:11:26 -0500 Subject: [PATCH] Fix typo --- lib/proxifier/env.rb | 2 +- lib/proxifier/proxy.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/proxifier/env.rb b/lib/proxifier/env.rb index 4ce92ea..b9d6471 100644 --- a/lib/proxifier/env.rb +++ b/lib/proxifier/env.rb @@ -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) diff --git a/lib/proxifier/proxy.rb b/lib/proxifier/proxy.rb index 93195fc..0bbb1b6 100644 --- a/lib/proxifier/proxy.rb +++ b/lib/proxifier/proxy.rb @@ -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)