Refactor Redis connection URLs in StandaloneDragonfly.php

This commit is contained in:
Andras Bacsai 2024-04-17 10:54:55 +02:00
parent 35b07a9c18
commit bc04ad96b5

View File

@ -167,9 +167,9 @@ public function type(): string
public function get_db_url(bool $useInternal = false): string
{
if ($this->is_public && !$useInternal) {
return "redis://{$this->dragonfly_password}@{$this->destination->server->getIp}:{$this->public_port}/0";
return "redis://:{$this->dragonfly_password}@{$this->destination->server->getIp}:{$this->public_port}/0";
} else {
return "redis://{$this->dragonfly_password}@{$this->uuid}:6379/0";
return "redis://:{$this->dragonfly_password}@{$this->uuid}:6379/0";
}
}