From: soufiane Date: Thu, 1 Feb 2024 12:05:38 +0000 (+0100) Subject: wait #6668 @0:01 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a3e7386b50427e7043b8ee5d5f3005fa3689e4cf;p=cubist_util.git wait #6668 @0:01 --- 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, [