From 2a520c0997853a42d445f7eb9e514ad0e4ac4157 Mon Sep 17 00:00:00 2001 From: dominic_dl Date: Tue, 26 Jul 2022 21:10:00 +0200 Subject: [PATCH] Fix IPv6 missing brackets in httpProxy.ServerOptions Signed-off-by: dominic_dl --- src/main/context-handler/context-handler.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/context-handler/context-handler.ts b/src/main/context-handler/context-handler.ts index 1917461c34..fa01c1fcf5 100644 --- a/src/main/context-handler/context-handler.ts +++ b/src/main/context-handler/context-handler.ts @@ -157,6 +157,10 @@ export class ContextHandler implements ClusterContextHandler { headers.Host = this.clusterUrl.hostname; } + if (headers.Host.includes(":")) { + headers.Host = "[" + headers.Host + "]"; + } + return { target: { protocol: "https:",