diff --git a/src/configuration/utils.ts b/src/configuration/utils.ts index 2588872ba20..079569adb83 100644 --- a/src/configuration/utils.ts +++ b/src/configuration/utils.ts @@ -25,7 +25,7 @@ export async function getValidHostname (hostname: string): Promise { } export async function getValidPort (port: number): Promise { - if (port) { + if (port >= 0) { const isFree = await isFreePort(port); if (!isFree)