summaryrefslogtreecommitdiffstats
path: root/lib/private/RedisFactory.php
diff options
context:
space:
mode:
authorAlejandro Varela <epma01@gmail.com>2019-05-01 22:12:27 +0200
committerAlejandro Varela <epma01@gmail.com>2019-05-14 18:59:17 +0200
commitf6d069ee587485aa87e3fa0fbad4053254e1a85e (patch)
tree09fe09ab6f667307fbd9472b82f5cde0e7aaee49 /lib/private/RedisFactory.php
parent82aa8d71cf74fda3dbcbe90eeefdad1b30ea9127 (diff)
downloadnextcloud-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.php4
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'];