From 9a27beb79c1b32775ba9f89db5c9bb6e81d23bd4 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 18 Apr 2015 09:53:43 -0600 Subject: [PATCH] Quick bug fix for empty Caddyfile --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8ecf316e..9c018e8a 100644 --- a/main.go +++ b/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)