1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix IPv6 missing brackets in httpProxy.ServerOptions

Signed-off-by: dominic_dl <me@dominic.link>
This commit is contained in:
dominic_dl 2022-07-26 21:10:00 +02:00
parent f61330611e
commit 2a520c0997

View File

@ -157,6 +157,10 @@ export class ContextHandler implements ClusterContextHandler {
headers.Host = this.clusterUrl.hostname; headers.Host = this.clusterUrl.hostname;
} }
if (headers.Host.includes(":")) {
headers.Host = "[" + headers.Host + "]";
}
return { return {
target: { target: {
protocol: "https:", protocol: "https:",