From 1922437115d8e2966b18f23118e3c8ba64c47b3c Mon Sep 17 00:00:00 2001 From: UndefinedPony Date: Mon, 13 Jan 2025 14:48:13 +0100 Subject: [PATCH] fix: isWSL check was not awaited causing always true --- apps/dokploy/server/utils/docker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/server/utils/docker.ts b/apps/dokploy/server/utils/docker.ts index 7577c844..92008678 100644 --- a/apps/dokploy/server/utils/docker.ts +++ b/apps/dokploy/server/utils/docker.ts @@ -14,7 +14,7 @@ export const isWSL = async () => { /** Returns the Docker host IP address. */ export const getDockerHost = async (): Promise => { if (process.env.NODE_ENV === "production") { - if (process.platform === "linux" && !isWSL()) { + if (process.platform === "linux" && !(await isWSL())) { try { // Try to get the Docker bridge IP first const { stdout } = await execAsync(