mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: isWSL check was not awaited causing always true
This commit is contained in:
@@ -14,7 +14,7 @@ export const isWSL = async () => {
|
||||
/** Returns the Docker host IP address. */
|
||||
export const getDockerHost = async (): Promise<string> => {
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user