Accept Unix socket paths starting with unix:

This commit is contained in:
Kijin Sung 2017-12-07 12:40:26 +09:00
parent fbd9af16a9
commit 697e0fd241

View file

@ -722,7 +722,11 @@ class adminAdminController extends admin
{ {
if ($vars->object_cache_type === 'memcached' || $vars->object_cache_type === 'redis') if ($vars->object_cache_type === 'memcached' || $vars->object_cache_type === 'redis')
{ {
if (starts_with('/', $vars->object_cache_host)) if (starts_with('unix:/', $vars->object_cache_host))
{
$cache_servers = array(substr($vars->object_cache_host, 5));
}
elseif (starts_with('/', $vars->object_cache_host))
{ {
$cache_servers = array($vars->object_cache_host); $cache_servers = array($vars->object_cache_host);
} }