mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #1110 from szwabodev/fix/wslCheck
fix: isWSL check was not awaited
This commit is contained in:
@@ -14,7 +14,7 @@ export const isWSL = async () => {
|
|||||||
/** Returns the Docker host IP address. */
|
/** Returns the Docker host IP address. */
|
||||||
export const getDockerHost = async (): Promise<string> => {
|
export const getDockerHost = async (): Promise<string> => {
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
if (process.platform === "linux" && !isWSL()) {
|
if (process.platform === "linux" && !(await isWSL())) {
|
||||||
try {
|
try {
|
||||||
// Try to get the Docker bridge IP first
|
// Try to get the Docker bridge IP first
|
||||||
const { stdout } = await execAsync(
|
const { stdout } = await execAsync(
|
||||||
|
|||||||
Reference in New Issue
Block a user