mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Quick bug fix for empty Caddyfile
This commit is contained in:
parent
e6532b6d85
commit
9a27beb79c
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
@ -35,8 +35,11 @@ func main() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
if len(allConfigs) == 0 {
|
||||
allConfigs = config.Default()
|
||||
}
|
||||
|
||||
// Group by address (virtual hosting)
|
||||
// Group by address (virtual hosts)
|
||||
addresses, err := arrangeBindings(allConfigs)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Reference in a new issue