Commit 9a27beb7 authored by Matthew Holt's avatar Matthew Holt

Quick bug fix for empty Caddyfile

parent e6532b6d
......@@ -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)
......
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