Fix double detection bug.
This commit is contained in:
parent
cbb1670702
commit
9894f68a6b
1 changed files with 7 additions and 5 deletions
|
|
@ -433,7 +433,7 @@ class Bouncer
|
|||
// $valid ? 'is valid' : 'is not valid'
|
||||
// ));
|
||||
if ($valid) {
|
||||
$bouncerTargets[] = $bouncerTarget;
|
||||
$bouncerTargets[$bouncerTarget->getDomains()[0]] = $bouncerTarget;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -495,7 +495,7 @@ class Bouncer
|
|||
// $valid ? 'is valid' : 'is not valid'
|
||||
// ));
|
||||
if ($valid) {
|
||||
$bouncerTargets[] = $bouncerTarget;
|
||||
$bouncerTargets[$bouncerTarget->getDomains()[0]] = $bouncerTarget;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -633,9 +633,11 @@ class Bouncer
|
|||
|
||||
$this->logger->info(sprintf('%s Swarm mode is %s.', Emoji::CHARACTER_HONEYBEE, $this->isSwarmMode() ? 'enabled' : 'disabled'));
|
||||
|
||||
$targets = array_merge(
|
||||
$this->findContainersContainerMode(),
|
||||
$this->isSwarmMode() ? $this->findContainersSwarmMode() : []
|
||||
$targets = array_values(
|
||||
array_merge(
|
||||
$this->findContainersContainerMode(),
|
||||
$this->isSwarmMode() ? $this->findContainersSwarmMode() : []
|
||||
)
|
||||
);
|
||||
|
||||
$this->wipeNginxConfig();
|
||||
|
|
|
|||
Loading…
Reference in a new issue