Fix IPv6 missing brackets in httpProxy.ServerOptions

Signed-off-by: dominic_dl <me@dominic.link>
This commit is contained in:
dominic_dl committed 2022-08-29 17:12:27 +02:00
1 parent f61330611e
commit 2a520c0997
1 file changed
+4
@@ -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:",