From 188e9667dc10a922a827bcf3cfe9f62aec0bcc5c Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 12 Sep 2009 13:49:07 +0000 Subject: * lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in the URI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 2a6c544fe6..4daec25c01 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -800,7 +800,8 @@ module URI end # The access sequence is defined by RFC 1738 - ftp = Net::FTP.open(self.host) + ftp = Net::FTP.new + ftp.connect(self.host, self.port) ftp.passive = true if !options[:ftp_active_mode] # todo: extract user/passwd from .netrc. user = 'anonymous' -- cgit v1.2.3