Skip to content

Commit

Permalink
Interpret a filesystem path host as an unix domain socket
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Dec 10, 2019
1 parent 47be8eb commit cbef7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConnectionConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct(

public function getConnectionString(): string
{
return 'tcp://' . $this->getHost() . ':' . $this->getPort();
return $this->getHost()[0] == "/" ? 'unix://' . $this->getHost() : 'tcp://' . $this->getHost() . ':' . $this->getPort();
}

public function isCompressionEnabled(): bool
Expand Down

0 comments on commit cbef7dc

Please sign in to comment.