0
Fork 0
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:
Matthew Holt 2015-04-18 09:53:43 -06:00
parent e6532b6d85
commit 9a27beb79c

View file

@ -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)