From daccde4d8430828f4cb47fbe01099a69faccd481 Mon Sep 17 00:00:00 2001 From: Alessandro Olivero Date: Thu, 21 Nov 2024 10:57:21 +0100 Subject: [PATCH] fixup! fixup! fixup! fixup! golang http proxy --- cmd/proxy/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 152bc14c70..c845ca44da 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -29,10 +29,11 @@ func main() { port := flag.Int("port", 8080, "port to listen on") allowedHosts := flag.String("allowed-hosts", "", "comma separated list of allowed hosts") + forceHost := flag.String("force-host", "", "force the server Host to this value") flag.Parse() - p := proxy.New(*allowedHosts, *port) + p := proxy.New(*allowedHosts, *port, *forceHost) if err := p.Start(ctx); err != nil { klog.Error(err)