mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d7a19d0333
commit
8a25f09d6c
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Aug 13 13:21:58 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/open-uri.rb: make ftp passive mode to avoid NAT problem.
|
||||
[ruby-dev:31377]
|
||||
|
||||
Mon Aug 13 05:03:53 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* thread.c (rb_thread_raise): check if target thread is
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue