Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! golang http proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
aleoli committed Nov 21, 2024
1 parent c622526 commit daccde4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit daccde4

Please sign in to comment.