From 2ca49a3891cc3a2e37138156b17b660b6a3cb7ea Mon Sep 17 00:00:00 2001 From: metapi-bot Date: Mon, 16 Mar 2026 08:31:49 +0000 Subject: [PATCH] feat(server): default listen host to IPv6 any-address --- src/server/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/config.ts b/src/server/config.ts index 4914a8e..e9884d4 100644 --- a/src/server/config.ts +++ b/src/server/config.ts @@ -32,7 +32,11 @@ function parseDbType(value: string | undefined): 'sqlite' | 'mysql' | 'postgres' } function parseListenHost(env: NodeJS.ProcessEnv): string { - return (env.HOST || '0.0.0.0').trim() || '0.0.0.0'; + const host = (env.HOST || '').trim(); + if (host) return host; + // Default to IPv6 any-address so the service is reachable via IPv6 public network. + // On most Linux systems this also accepts IPv4-mapped connections. + return '::'; } export function buildConfig(env: NodeJS.ProcessEnv) {