Issue #11612 has been updated by Shugo Maeda. Status changed from Open to Closed The default mode was changed in r52532. ---------------------------------------- Feature #11612: The default mode of Net::FTP should be passive https://bugs.ruby-lang.org/issues/11612#change-54809 * Author: Shugo Maeda * Status: Closed * Priority: Normal * Assignee: Shugo Maeda ---------------------------------------- The default mode of Net::FTP is active for historical reasons, but it should be changed to passive because active data connections might be blocked by a local firewall. Passive data connections might also be blocked by a firewall, but such cases are relatively rare. In Python, the default mode was changed to passive since Python 2.1. In Perl, the default mode was changed to passive since libnet-1.21. One concern is backward compatibility. For example the following code in open-uri.rb wouldn't work if the default mode is changed. ftp.passive = true if !options[:ftp_active_mode] The code has to be changed as follows: ftp.passive = !options[:ftp_active_mode] It might be better to check the environment variable FTP_PASSIVE as Perl does. Any thoughts? -- https://bugs.ruby-lang.org/