mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Merge pull request #57793 from pac0san/patch-1
fix(files_external): Respect explicit port configuration
This commit is contained in:
commit
e10805fb35
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