Skip to content

Commit f2ee9ec

Browse files
authored
Merge pull request #54941 from nextcloud/fix/redis-unix-socket-port-zero
fix(cache): Set default Redis port to `0` for UNIX sockets
2 parents eda72da + 3a8b2b8 commit f2ee9ec

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)