From 8a25f09d6c9dfd55644d8b3afb750cdc76c5bc7e Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 13 Aug 2007 04:23:42 +0000 Subject: [PATCH] * lib/open-uri.rb: make ftp passive mode to avoid NAT problem. [ruby-dev:31377] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/open-uri.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index cedb50a235..b55fffa7ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 13 13:21:58 2007 Tanaka Akira + + * lib/open-uri.rb: make ftp passive mode to avoid NAT problem. + [ruby-dev:31377] + Mon Aug 13 05:03:53 2007 Koichi Sasada * thread.c (rb_thread_raise): check if target thread is diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 37d22a1572..a38d596562 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -743,6 +743,7 @@ module URI # The access sequence is defined by RFC 1738 ftp = Net::FTP.open(self.host) + ftp.passive = true # todo: extract user/passwd from .netrc. user = 'anonymous' passwd = nil