0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

-host and -port flags affect shorthand caddyfile

This commit is contained in:
Matthew Holt 2015-11-07 20:03:02 -07:00
parent 8628a50b7d
commit be9f644425

View file

@ -145,7 +145,7 @@ func loadCaddyfile() (caddy.Input, error) {
// command line args
if flag.NArg() > 0 {
confBody := ":" + caddy.DefaultPort + "\n" + strings.Join(flag.Args(), "\n")
confBody := caddy.Host + ":" + caddy.Port + "\n" + strings.Join(flag.Args(), "\n")
return caddy.CaddyfileInput{
Contents: []byte(confBody),
Filepath: "args",