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:
parent
8628a50b7d
commit
be9f644425
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue