From 612b646c92beff84bb422a48680450270aee7188 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 18:05:54 +0100 Subject: [PATCH] wait #5700 @1 --- src/app/Magic/Models/ExternalServer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5