From 999ab22b8cbe3721eff6ae57526024a17f7cee4e Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 10 Apr 2020 08:12:42 -0600 Subject: caddyhttp: Add nil check (fixes #3248 and fixes #3250) --- modules/caddyhttp/fileserver/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/fileserver/command.go') diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go index bd740e8..53aa7aa 100644 --- a/modules/caddyhttp/fileserver/command.go +++ b/modules/caddyhttp/fileserver/command.go @@ -85,7 +85,7 @@ func cmdFileServer(fs caddycmd.Flags) (int, error) { if domain != "" { route.MatcherSetsRaw = []caddy.ModuleMap{ - caddy.ModuleMap{ + { "host": caddyconfig.JSON(caddyhttp.MatchHost{domain}, nil), }, } -- cgit v1.2.3