aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Richards <josh.t.richards@gmail.com>2024-08-27 09:01:12 -0400
committerJosh Richards <josh.t.richards@gmail.com>2024-08-27 09:01:12 -0400
commit2e73932c8e60fc16575c6a2056c7228270d04660 (patch)
treefecf2386cbc40c8453b2b9e64411ac3af96df84d
parent829642c9e504813bad55e39be7527abe70e488cc (diff)
downloadnextcloud-server-2e73932c8e60fc16575c6a2056c7228270d04660.tar.gz
nextcloud-server-2e73932c8e60fc16575c6a2056c7228270d04660.zip
fix: custom port handling in UI for SFTP
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
-rw-r--r--apps/files_external/lib/Lib/Backend/SFTP.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Backend/SFTP.php b/apps/files_external/lib/Lib/Backend/SFTP.php
index c3625f97087..93a5d87a5ff 100644
--- a/apps/files_external/lib/Lib/Backend/SFTP.php
+++ b/apps/files_external/lib/Lib/Backend/SFTP.php
@@ -20,6 +20,8 @@ class SFTP extends Backend {
->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),
])