From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 17:05:54 +0000 (+0100) Subject: wait #5700 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=612b646c92beff84bb422a48680450270aee7188;p=cubist_cms-back.git wait #5700 @1 --- diff --git a/src/app/Magic/Models/ExternalServer.php b/src/app/Magic/Models/ExternalServer.php index 7ef094d..af75dde 100644 --- a/src/app/Magic/Models/ExternalServer.php +++ b/src/app/Magic/Models/ExternalServer.php @@ -19,7 +19,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer */ public static $_servers = null; - protected static $_defaultPorts = ['sftp' => 22, 'ftp' => 21, 'ftpes' => 21, 'ftps' => 990]; + protected static $_defaultPorts = ['SFTP' => 22, 'FTP' => 21, 'FTPES' => 21, 'FTPS' => 990]; public function setFields() { @@ -94,7 +94,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer { if (in_array($this->getProtocol(), $this->getFTPProtocols())) { return new FTP($this); - } else if ($this->getProtocol() === 'sftp') { + } else if ($this->getProtocol() === 'SFTP') { return new SFTP($this); } return null;