1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 14:31:44 +01:00

fix: fixes redirect to also check the host of the container. fixes #4226 (#4227)

This commit is contained in:
Amir Raminfar
2025-11-05 09:51:11 -08:00
committed by GitHub
parent 8462ee9454
commit 6097bd49b7

View File

@@ -45,7 +45,12 @@ watchEffect(() => {
if (Date.now() - +currentContainer.value.finishedAt > 5 * 60 * 1000) return;
const nextContainer = allContainers.value
.filter((c) => c.startedAt > currentContainer.value.startedAt && c.name === currentContainer.value.name)
.filter(
(c) =>
c.startedAt > currentContainer.value.startedAt &&
c.name === currentContainer.value.name &&
c.host === currentContainer.value.host,
)
.sort((a, b) => +a.created - +b.created)[0];
if (!nextContainer) return;