From 266761aae6267e9e970dc0f693c703258c6fc9c1 Mon Sep 17 00:00:00 2001 From: oanhnn Date: Wed, 16 Mar 2016 12:44:01 +0700 Subject: [PATCH] Merge PR #30 #34 and #40 --- lib/Resque.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque.php b/lib/Resque.php index 2aaeb54..7ead8a4 100755 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -93,7 +93,7 @@ public static function redis() if (strpos($server, 'unix:') === false) { list($host, $port) = explode(':', $server); } else { - $host = $server; + $host = str_replace('unix://', '', $server); $port = null; } require_once dirname(__FILE__) . '/Resque/Redis.php';