Merge pull request #54941 from nextcloud/fix/redis-unix-socket-port-zero

fix(cache): Set default Redis port to `0` for UNIX sockets
pull/54653/head
Côme Chilliet 2025-09-08 11:11:42 +07:00 committed by GitHub
commit f2ee9ec294
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -77,7 +77,7 @@ class RedisFactory {
$this->instance = new \Redis();
$host = $config['host'] ?? '127.0.0.1';
$port = $config['port'] ?? ($host[0] !== '/' ? 6379 : null);
$port = $config['port'] ?? ($host[0] !== '/' ? 6379 : 0);
$this->eventLogger->start('connect:redis', 'Connect to redis and send AUTH, SELECT');
// Support for older phpredis versions not supporting connectionParameters