From 3269ca3eb88c5c7054e9dd3a8ba5a6f2dc16d65b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 5 Aug 2024 18:27:54 +0200 Subject: [PATCH] chore: Add comment explaining the purpose of disconnecting the network in cleanup_unused_network_from_coolify_proxy() --- app/Console/Commands/Init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index 754b95e6b..5789d32fc 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -107,6 +107,7 @@ class Init extends Command } else { $data = collect(json_decode($out, true)); if ($data->count() === 1) { + // If only coolify-proxy itself is connected to that network (it should not be possible, but who knows) $isCoolifyProxyItself = data_get($data->first(), 'Name') === 'coolify-proxy'; if ($isCoolifyProxyItself) { $commands->push("docker network disconnect $network coolify-proxy >/dev/null 2>&1 || true");