lib/hylafax/command.rb in hylafax-0.3.1 vs lib/hylafax/command.rb in hylafax-0.4.0

- old
+ new

@@ -11,9 +11,11 @@ @ftp = opts.fetch(:ftp) { Net::FTP.new } @host = opts.fetch(:host) { DEFAULT_HOST } @port = opts.fetch(:port) { DEFAULT_PORT } @user = opts.fetch(:user) { DEFAULT_USER } @password = opts.fetch(:password) { DEFAULT_PASSWORD } + + @ftp.passive = true if opts[:passive] end private def connect