From d30a29e89ea6cce3e82084e75644335b010183d5 Mon Sep 17 00:00:00 2001 From: WispX Date: Thu, 21 Jan 2021 11:04:51 +0800 Subject: [PATCH] :bug: Fixing a bug. --- extend/strategy/driver/Remote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/strategy/driver/Remote.php b/extend/strategy/driver/Remote.php index 19e92728..9a1adf32 100644 --- a/extend/strategy/driver/Remote.php +++ b/extend/strategy/driver/Remote.php @@ -22,7 +22,7 @@ class Remote implements Driver { try { $this->ftp = new \FtpClient\FtpClient(); - $this->ftp->connect($options['remote_host']); + $this->ftp->connect($options['remote_host'], false, $options['remote_port']); $this->ftp = $this->ftp->login($options['remote_name'], $options['remote_password']); $this->ftp->pasv($options['remote_pasv'] ? true : false); } catch (FtpException $e) {