From dc65c37af431b16c35ad61f4aaa09f5ad456c3cd Mon Sep 17 00:00:00 2001 From: Josh Richards Date: Tue, 27 Aug 2024 09:01:12 -0400 Subject: [PATCH] fix: custom port handling in UI for SFTP Signed-off-by: Josh Richards --- apps/files_external/lib/Lib/Backend/SFTP.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_external/lib/Lib/Backend/SFTP.php b/apps/files_external/lib/Lib/Backend/SFTP.php index c65720ea1aed9..9ac72eaec6620 100644 --- a/apps/files_external/lib/Lib/Backend/SFTP.php +++ b/apps/files_external/lib/Lib/Backend/SFTP.php @@ -37,6 +37,8 @@ public function __construct(IL10N $l, Password $legacyAuth) { ->setText($l->t('SFTP')) ->addParameters([ new DefinitionParameter('host', $l->t('Host')), + (new DefinitionParameter('port', $l->t('Port'))) + ->setFlag(DefinitionParameter::FLAG_OPTIONAL), (new DefinitionParameter('root', $l->t('Root'))) ->setFlag(DefinitionParameter::FLAG_OPTIONAL), ])