Refactor Redis connection URLs in StandaloneDragonfly.php
This commit is contained in:
parent
35b07a9c18
commit
bc04ad96b5
@ -167,9 +167,9 @@ class StandaloneDragonfly extends BaseModel
|
|||||||
public function get_db_url(bool $useInternal = false): string
|
public function get_db_url(bool $useInternal = false): string
|
||||||
{
|
{
|
||||||
if ($this->is_public && !$useInternal) {
|
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 {
|
} else {
|
||||||
return "redis://{$this->dragonfly_password}@{$this->uuid}:6379/0";
|
return "redis://:{$this->dragonfly_password}@{$this->uuid}:6379/0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user