Skip to content

Commit

Permalink
Allow path to unix socket as hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
lenar committed Jan 12, 2015
1 parent eab84a5 commit fb02ee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resque.php
Expand Up @@ -43,8 +43,9 @@ public function setRedisConfiguration($host, $port, $database)
'port' => $port,
'database' => $database,
);
$host = substr($host, 0, 1) == '/' ? $host : $host.':'.$port;

\Resque::setBackend($host.':'.$port, $database);
\Resque::setBackend($host, $database);
}

public function setGlobalRetryStrategy($strategy)
Expand Down

0 comments on commit fb02ee8

Please sign in to comment.