Commit be9f6444 authored by Matthew Holt's avatar Matthew Holt

-host and -port flags affect shorthand caddyfile

parent 8628a50b
...@@ -145,7 +145,7 @@ func loadCaddyfile() (caddy.Input, error) { ...@@ -145,7 +145,7 @@ func loadCaddyfile() (caddy.Input, error) {
// command line args // command line args
if flag.NArg() > 0 { 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{ return caddy.CaddyfileInput{
Contents: []byte(confBody), Contents: []byte(confBody),
Filepath: "args", Filepath: "args",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment