From a3e7386b50427e7043b8ee5d5f3005fa3689e4cf Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 1 Feb 2024 13:05:38 +0100 Subject: [PATCH] wait #6668 @0:01 --- src/CommandLine/LFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommandLine/LFTP.php b/src/CommandLine/LFTP.php index 87028b3..c87e242 100644 --- a/src/CommandLine/LFTP.php +++ b/src/CommandLine/LFTP.php @@ -19,7 +19,6 @@ class LFTP extends CloneUserpassProgram { parent::setServer($server); $settings = $server->getSettings(); - $settings['ftp_mode'] = $server->ftp_mode; if (isset($settings['ftp_mode'])) { $this->setPassiveMode($settings['ftp_mode'] == '0'); } @@ -34,6 +33,7 @@ class LFTP extends CloneUserpassProgram 'set net:max-retries 2', 'set ftp:passive-mode ' . ($this->isPassiveMode() ? '1' : '0') ]; + switch ($this->getProtocol()) { case 'FTP': $commands = array_merge($commands, [ -- 2.39.5