diff options
author | Alejandro Varela <epma01@gmail.com> | 2019-05-01 22:12:27 +0200 |
---|---|---|
committer | Alejandro Varela <epma01@gmail.com> | 2019-05-14 18:59:17 +0200 |
commit | f6d069ee587485aa87e3fa0fbad4053254e1a85e (patch) | |
tree | 09fe09ab6f667307fbd9472b82f5cde0e7aaee49 /lib/private/RedisFactory.php | |
parent | 82aa8d71cf74fda3dbcbe90eeefdad1b30ea9127 (diff) | |
download | nextcloud-server-f6d069ee587485aa87e3fa0fbad4053254e1a85e.tar.gz nextcloud-server-f6d069ee587485aa87e3fa0fbad4053254e1a85e.zip |
Fix Redis with unix socket
Signed-off-by: Alejandro Varela <epma01@gmail.com>
Diffstat (limited to 'lib/private/RedisFactory.php')
-rw-r--r-- | lib/private/RedisFactory.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/RedisFactory.php b/lib/private/RedisFactory.php index 754437c06c7..22d02e07c29 100644 --- a/lib/private/RedisFactory.php +++ b/lib/private/RedisFactory.php @@ -72,8 +72,10 @@ class RedisFactory { } if (isset($config['port'])) { $port = $config['port']; - } else { + } else if ($host[0] !== '/') { $port = 6379; + } else { + $port = null; } if (isset($config['timeout'])) { $timeout = $config['timeout']; |