From 5e4af5995afc87e3d1dca9e20cdd0f8b5818de45 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 30 Nov 2023 10:34:15 +0100 Subject: [PATCH] wip #6527 Modification commande sftp --- src/CommandLine/LFTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommandLine/LFTP.php b/src/CommandLine/LFTP.php index d3321b6..df0ee6f 100644 --- a/src/CommandLine/LFTP.php +++ b/src/CommandLine/LFTP.php @@ -38,7 +38,7 @@ class LFTP extends CloneUserpassProgram case 'FTP': $commands = array_merge($commands, [ 'set ftp:ssl-allow false', - 'connect ftp://' . $this->getHost() + //'connect ftp://' . $this->getHost() ]); break; case 'FTPS': @@ -67,7 +67,7 @@ class LFTP extends CloneUserpassProgram $mirrorCmd .= ' --dry-run'; } $commands[] = $mirrorCmd; - $this->setArg('u', $this->getUsername() . ',' . $this->getPassword()); + $this->setArg('u', $this->getUsername() . ',' . $this->getPassword().' '.$this->getHost()); $this->setArg('p', $this->getPort()); $this->setArg('e', implode(';', $commands)); } -- 2.39.5