summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-13 04:23:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-13 04:23:42 +0000
commitc69ce6755a2782e4af7cb3ee35435adf13f9772b (patch)
treebc7264ab63fd861ff082069de6b251e6e8ff3e29 /lib
parentdaa3de4737a25b11a6d6cad3b8ddc039d9982d01 (diff)
downloadruby-c69ce6755a2782e4af7cb3ee35435adf13f9772b.tar.gz
ruby-c69ce6755a2782e4af7cb3ee35435adf13f9772b.tar.xz
ruby-c69ce6755a2782e4af7cb3ee35435adf13f9772b.zip
* lib/open-uri.rb: make ftp passive mode to avoid NAT problem.
[ruby-dev:31377] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 37d22a157..a38d59656 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