From d9324286d4b3142f984ae4389b892b10d9d08705 Mon Sep 17 00:00:00 2001 From: liuyi Date: Thu, 18 Jan 2024 03:04:36 +0000 Subject: [PATCH] chore(server): add port to host if it is 0.0.0.0 (#5619) --- packages/backend/server/src/fundamentals/config/default.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/server/src/fundamentals/config/default.ts b/packages/backend/server/src/fundamentals/config/default.ts index e16d3e464d..ae194f112f 100644 --- a/packages/backend/server/src/fundamentals/config/default.ts +++ b/packages/backend/server/src/fundamentals/config/default.ts @@ -92,7 +92,9 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => { return this.node.dev ? 'http://localhost:8080' : `${this.https ? 'https' : 'http'}://${this.host}${ - this.host === 'localhost' ? `:${this.port}` : '' + this.host === 'localhost' || this.host === '0.0.0.0' + ? `:${this.port}` + : '' }`; }, get baseUrl() {