From 27722463a743a2a6d87daf3397e05a25a55dcbc4 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 29 Apr 2015 22:30:12 -0600 Subject: [PATCH] -host flag to set default host --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 36313c4a..fc7c84e5 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,7 @@ func init() { flag.BoolVar(&http2, "http2", true, "enable HTTP/2 support") // TODO: temporary flag until http2 merged into std lib flag.BoolVar(&quiet, "quiet", false, "quiet mode (no initialization output)") flag.StringVar(&cpu, "cpu", "100%", "CPU cap") + flag.StringVar(&config.Host, "host", config.DefaultHost, "Default host") flag.StringVar(&config.Port, "port", config.DefaultPort, "Default port") flag.Parse() }