From bc92ba47f60f7dcba47a17b5bc18068c07dde49f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:39:08 +0000 Subject: [PATCH] Fix IPv6 support by binding servers to '::' instead of '0.0.0.0' Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/services/grpc.ts | 2 +- back/services/http.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/services/grpc.ts b/back/services/grpc.ts index e8ea2282..b04929be 100644 --- a/back/services/grpc.ts +++ b/back/services/grpc.ts @@ -25,7 +25,7 @@ export class GrpcServerService { const grpcPort = config.grpcPort; const bindAsync = promisify(this.server.bindAsync).bind(this.server); await bindAsync( - `0.0.0.0:${grpcPort}`, + `[::]:${grpcPort}`, ServerCredentials.createInsecure(), ); Logger.debug(`✌️ gRPC service started successfully`); diff --git a/back/services/http.ts b/back/services/http.ts index 5391c842..4d65b9d2 100644 --- a/back/services/http.ts +++ b/back/services/http.ts @@ -11,7 +11,7 @@ export class HttpServerService { async initialize(expressApp: express.Application, port: number) { try { return new Promise((resolve, reject) => { - this.server = expressApp.listen(port, '0.0.0.0', () => { + this.server = expressApp.listen(port, '::', () => { Logger.debug(`✌️ HTTP service started successfully`); metricsService.record('http_service_start', 1, { port: port.toString(),