mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
-host flag to set default host
This commit is contained in:
parent
3bc4e84ed3
commit
27722463a7
1 changed files with 1 additions and 0 deletions
1
main.go
1
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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue