Actions
Feature #11612
closedThe default mode of Net::FTP should be passive
Description
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?
Updated by shugo (Shugo Maeda) about 9 years ago
- Status changed from Open to Closed
The default mode was changed in r52532.
Actions
Like0
Like0