caddyhttp: Add nil check (fixes #3248 and fixes #3250)

This commit is contained in:
Matthew Holt
2020-04-10 08:12:42 -06:00
parent 9991fdc495
commit 999ab22b8c
2 changed files with 13 additions and 5 deletions

View File

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