Skip to content

Commit 56c744d

Browse files
Merge pull request #47527 from nextcloud/fix-sftp-custom-port-ui
fix(files_external): Handling in SFTP UI for custom ports
2 parents b6c2866 + 2e73932 commit 56c744d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/files_external/lib/Lib/Backend

apps/files_external/lib/Lib/Backend/SFTP.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function __construct(IL10N $l, Password $legacyAuth) {
2020
->setText($l->t('SFTP'))
2121
->addParameters([
2222
new DefinitionParameter('host', $l->t('Host')),
23+
(new DefinitionParameter('port', $l->t('Port')))
24+
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
2325
(new DefinitionParameter('root', $l->t('Root')))
2426
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
2527
])

0 commit comments

Comments
 (0)