diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-13 04:23:42 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-13 04:23:42 +0000 |
commit | 8a25f09d6c9dfd55644d8b3afb750cdc76c5bc7e (patch) | |
tree | bc7264ab63fd861ff082069de6b251e6e8ff3e29 /lib | |
parent | d7a19d03334075e29e14e0e2065d29b73e5d5350 (diff) | |
download | ruby-8a25f09d6c9dfd55644d8b3afb750cdc76c5bc7e.tar.gz |
* 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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open-uri.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |