Skip to content

Commit 96c5996

Browse files
Merge pull request #54944 from nextcloud/backport/54941/stable31
[stable31] fix(cache): Set default Redis port to `0` for UNIX sockets
2 parents 616d72f + 6b9fea9 commit 96c5996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/RedisFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function create() {
7777
$this->instance = new \Redis();
7878

7979
$host = $config['host'] ?? '127.0.0.1';
80-
$port = $config['port'] ?? ($host[0] !== '/' ? 6379 : null);
80+
$port = $config['port'] ?? ($host[0] !== '/' ? 6379 : 0);
8181

8282
$this->eventLogger->start('connect:redis', 'Connect to redis and send AUTH, SELECT');
8383
// Support for older phpredis versions not supporting connectionParameters

0 commit comments

Comments
 (0)