mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix(files_external): Respect explicit port configuration
It allows the use of the alternative SFTP port defined in the GUI (external storage), instead of the default port (22). Signed-off-by: pac0san <7056343+pac0san@users.noreply.github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
4775ce4266
commit
e48f871bd0
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class SFTP extends Common {
|
|||
$parsedHost = $this->splitHost($parameters['host']);
|
||||
|
||||
$this->host = $parsedHost[0];
|
||||
$this->port = $parsedHost[1];
|
||||
$this->port = $parameters['port'] ?? $parsedHost[1];
|
||||
|
||||
if (!isset($parameters['user'])) {
|
||||
throw new \UnexpectedValueException('no authentication parameters specified');
|
||||
|
|
|
|||
Loading…
Reference in a new issue